[swift-evolution] [Discussion] Enum Leading Dot Prefixes

Erica Sadun erica at ericasadun.com
Sat Feb 13 13:31:36 CST 2016


No. The wildcard match does not require a dot prefix.

-- E


> On Feb 13, 2016, at 10:40 AM, Paul Ossenbruggen via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 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 <mailto: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 <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution
> 
> _______________________________________________
> 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/074e0ec7/attachment.html>


More information about the swift-evolution mailing list