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

Carlos Parada carlosparada at me.com
Fri Feb 12 00:41:33 CST 2016


Taking consistency further, should the definition also use dot prefixes? For example:

> enum Coin {
>     case .Heads, .Tails
>     func printMe() {
>         switch self {
>         case .Heads: print("Heads")
>         case .Tails: print("Tails")
>         }
>     }
> }

— Carlos Parada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/1ce4fd4f/attachment.html>


More information about the swift-evolution mailing list