[swift-evolution] Draft Proposal: count property for enum types
brent at architechies.com
Sun Jan 17 06:06:59 CST 2016
> I propose adding a read-only ‘count’ property to enum types, that returns the number of cases; modelled on the API for arrays types.
Most discussions of this start with a `count` proposal, proceed to an `allValues` array or something of the sort, and then fizzle out before anyone actually writes a formal proposal. Feel free to break that pattern.
More information about the swift-evolution