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

Erica Sadun erica at ericasadun.com
Thu Feb 11 22:24:28 CST 2016


> On Feb 11, 2016, at 9:09 PM, Brent Royal-Gordon <brent at architechies.com> wrote:
> 
>> https://gist.github.com/erica/e0b8a3a22ab716a19db4
>> 
>> Requiring Leading Dot Prefixes for Enum Instance Member Implementations
>> 
>> 	• Proposal: TBD
>> 	• Author(s): Erica Sadun, Chris Lattner
>> 	• Status: TBD
>> 	• Review manager: TBD
> 
> +1. I've always found this slightly bizarre.
> 
> I assume, though, that if you're writing a static member of an enum, the unprefixed form is fine?
> 
> -- 
> Brent Royal-Gordon
> Architechies
> 

In this write-up I recommend using a prefixed form there too for consistency (staticFunc2), but I'm not married to it.

-- E



More information about the swift-evolution mailing list