[swift-evolution] [Review] SE-0194: Derived Collection of Enum Cases

swift at lng.la swift at lng.la
Mon Jan 8 16:13:11 CST 2018


>
> • What is your evaluation of the proposal?
>
+1, very happy to see this coming together! I've been interested in this feature since the early days of Swift.

My only reservation is that I would have expected to be able to access the list of values without any extra annotations. Is there a reason to not automatically give ValueEnumerable conformance to any enum that fits the criteria for synthesis?

>
> • Is the problem being addressed significant enough to warrant a change to Swift?
>
Definitely, for the reasons mentioned in the proposal's motivation.

>
> • Does this proposal fit well with the feel and direction of Swift?
>
Yes, this feels like a very natural addition to the language.

>
> • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
>
I've used the GetValues API in C#, and though I think the proposed API is a much better fit for Swift, I did appreciate that GetValues could be used on any enum without needing to opt in manually.

>
> • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
>
Full reading.


Jarod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20180108/398fbe8a/attachment.html>


More information about the swift-evolution mailing list