<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 4 Jul 2016, at 09:14, Brent Royal-Gordon via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">On Jul 3, 2016, at 6:36 PM, Gabriel Lanata via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><br class="">Hello, this has been proposed multiple times before in different ways. <br class=""></blockquote><br class="">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". <<a href="https://github.com/apple/swift-evolution/pull/114" class="">https://github.com/apple/swift-evolution/pull/114</a>><br class=""><br class=""><blockquote type="cite" class="">The proposed solution is to implement a native `.cases` static var for all enumerations without associated values. <br class=""></blockquote><br class=""><br class="">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`:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>for case in PokemonType.cases { … }<br class=""><br class="">And also because other types which aren't technically enums, such as `Bool`, may want to expose their "cases" through the same mechanism.<br class=""><br class=""></div></div></blockquote><div><br class=""></div></div>Now that you mention it; why is Bool <i class="">not</i> an enum?<div class=""><br class=""></div><div class="">Karl</div></body></html>