[swift-evolution] [Discussion] Enum Leading Dot Prefixes
erica at ericasadun.com
Thu Feb 11 21:26:36 CST 2016
Your modification would affect the language on a large scale rather than creating a small tweak to become less out of sync with existing behavior. Technically, you'd have to introduce name conflict resolution, among other things. And for a community that defeated "required self" only after a large scale heated debate, any change that would make the language less precise and less readable would be a hard sell.
> On Feb 11, 2016, at 8:17 PM, Rob Mayoff via swift-evolution <swift-evolution at swift.org> wrote:
> On Thu, Feb 11, 2016 at 9:00 PM, Erica Sadun via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> Unlike static members in structures and classes, enumeration cases can be mentioned in initializers and instance methods without referencing a fully qualified type.
> Why not go the other way then and allow instance methods to refer to static members (or class members) directly, without the type name prefix?
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution