I'm not sure if I want the proposal to be standard-behavior, but in the past, I have written numerous extensions which basically took an enum to forward its raw value to an existing method (mostly keys for NSUserDefaults). So, it would be convenient if the conversation happens automatically… but this use case isn't actually a "real" enum; it is just handy to get the value and a namespace for free, and I expect that there will be better ways to achieve this in the future. On the other hand: What's the point of "raw-value enums"? Are they just a bridge-technogy, or is it ok to use them to store constants? _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution
Re: [swift-evolution] Could enums have their rawValue type inferred?
Tino Heth via swift-evolution Tue, 17 May 2016 07:11:57 -0700
- [swift-evolution] Could enums have ... Eric Miller via swift-evolution
- Re: [swift-evolution] Could en... Leonardo Pessoa via swift-evolution
- Re: [swift-evolution] Could en... Brent Royal-Gordon via swift-evolution
- Re: [swift-evolution] Could en... Tino Heth via swift-evolution
- Re: [swift-evolution] Coul... Brent Royal-Gordon via swift-evolution
- Re: [swift-evolution] ... Austin Zheng via swift-evolution
- Re: [swift-evolution] ... Goffredo Marocchi via swift-evolution
- Re: [swift-evolution] Could en... Eric Miller via swift-evolution