[swift-evolution] [Idea] `enum` case count feature

Nicholas Maccharoli nmaccharoli at gmail.com
Wed May 10 02:58:29 CDT 2017


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


Looking forward to hearing back about this!

- Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170510/b41ad8d0/attachment.html>

More information about the swift-evolution mailing list