Swift-Evolution,

I'm sorry if this has been brought up before but is there a reason why
there is no built-in way of getting the number of cases an enum defines?

Given something like: enum MyEnum { case foo, bar, baz }

It would be nice to get the number of cases this enum defines, something
like:

    MyEnum.count

Looking forward to hearing back about this!

- Nick
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to