[swift-evolution] [Proposal] Enums with static stored properties for each case

Brent Royal-Gordon brent at architechies.com
Tue May 31 15:52:04 CDT 2016


>    case spades {
<snip>
>        let bezierPath = UIBezierPath()

Does each instance of `.spades` have a *separate* UIBezierPath, or do all instances of `.spades` share one? If it's the former, I have strong doubts you'll actually get this through. If it's the latter, that isn't really what this syntax suggests is happening.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list