[swift-evolution] Working with enums by name

Erica Sadun erica at ericasadun.com
Tue May 31 17:11:41 CDT 2016


> On May 31, 2016, at 4:07 PM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> • also wants OptionSetType-like behavior (and thus an Int raw type).
> 
> Then it's not an `enum`, it's a `struct`.

You can get it for free as an array of enums and test with contains vs member

-- E, who has probably digressed more than she really should


More information about the swift-evolution mailing list