> On 4 Jul 2016, at 09:14, Brent Royal-Gordon via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
>> On Jul 3, 2016, at 6:36 PM, Gabriel Lanata via swift-evolution 
>> <swift-evolution@swift.org> wrote:
>> 
>> Hello, this has been proposed multiple times before in different ways. 
> 
> It has indeed. Unfortunately, for various reasons it did not get into review 
> in time, and Swift 3 is basically closed to additive features at this point. 
> Our last pull request to get it reviewed has now been tagged "out of scope 
> for current release". <https://github.com/apple/swift-evolution/pull/114>
> 
>> The proposed solution is to implement a native `.cases` static var for all 
>> enumerations without associated values. 
> 
> 
> That was one of many things we discussed in previous threads. `cases` isn't 
> good because the natural variable you'd want to use in a `for` loop is `case`:
> 
>       for case in PokemonType.cases { … }
> 
> And also because other types which aren't technically enums, such as `Bool`, 
> may want to expose their "cases" through the same mechanism.
> 

Now that you mention it; why is Bool not an enum?

Karl
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to