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

Erica Sadun 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.

-- E

> 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
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/1774313c/attachment.html>


More information about the swift-evolution mailing list