> On Dec 21, 2015, at 12:24 PM, Erica Sadun <[email protected]> wrote: > > I could be satisfied by such an approach. I could even be more satisfied if > >> enum Foo: ValueEnumerable { case A, B, C } > > > were also essentially an alias for > >> enum Foo: Int, ValueEnumerable { case A=0, B, C } > > :)
If the value collection were sufficiently capable, you wouldn't necessarily need an implicit Int raw value; you could do `allValues.indexOf(.A)` to get the index for a case. -Joe _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
