[swift-evolution] Proposal: Enum 'count' functionality
pierre at monod-broca.fr
Wed Dec 23 07:00:38 CST 2015
+1 for an ordered collection of all cases, it could be an ordered set to please proponents of a set.
I have no strong opinions about the name
`cases` is good, but I agree it begs to do ''for case in SomeEnum.cases''
`values` is good, and IMO it's consistent with `rawValue` when there is one, not confusing
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution