[swift-evolution] Normalize Enum Case Representation (rev. 2)
Daniel Duan
daniel at duan.org
Thu Mar 9 16:03:51 CST 2017
cc’ing Xiaodi
> On Mar 9, 2017, at 1:53 PM, Joe Groff <jgroff at apple.com> wrote:
>
>
>> On Mar 8, 2017, at 7:09 PM, Daniel Duan via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> Hi everyone,
>>
>> Here’s revision 2 of SE-0155. I’d love some feedback before going into re-review.
>>
>> Note the “anonymous case” feature is not in this proposal. I found the motivation section difficult to write when it’s included. I’ve drafted a separate proposal that adds it.
>>
>> Rendered version: https://github.com/dduan/swift-evolution/blob/SE0155-rev2/proposals/0155-normalize-enum-case-representation.md <https://github.com/dduan/swift-evolution/blob/SE0155-rev2/proposals/0155-normalize-enum-case-representation.md>
>
> You appear to have pasted a different version below from what's rendered at that link.
>
> Some comments:
>
> - Overloading seems like unnecessarily distracting scope creep. I would leave it out.
Great, this certainly solves a lot of unresolved problems being discussed here! :P
> - Having `case leaf()` have type Tree is IMO more surprising than making it equivalent to `case leaf`. It should either behave as if it were a method, or be banned outright. We don't need two ways to spell the same thing.
Sounds good!
>
> -Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170309/d2f595d6/attachment.html>
More information about the swift-evolution
mailing list