[swift-evolution] [Discussion] Enum Leading Dot Prefixes
Paul Ossenbruggen
possen at gmail.com
Sat Feb 13 11:40:15 CST 2016
I am assuming there would be no dot in front of _?
switch value {
case .A: “A”
case .B: “B”
case ._:”D” // this is not correct?
}
> On Feb 13, 2016, at 9:18 AM, Joseph Lord via swift-evolution <swift-evolution at swift.org> wrote:
>
> +1
>
> Didn't even know it was legal. Definitely increases consistency and simplifies the language.
>
> J
>
> On Feb 12, 2016, at 3:00 AM, Erica Sadun via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>
>> https://gist.github.com/erica/e0b8a3a22ab716a19db4 <https://gist.github.com/erica/e0b8a3a22ab716a19db4>
>>
>> Requiring Leading Dot Prefixes for Enum Instance Member Implementations
>>
>>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160213/3a7c9dde/attachment.html>
More information about the swift-evolution
mailing list