I meant any static member, inferred self or inferred other. So your example would be unchanged.
On Sunday, 3 April 2016, Brent Royal-Gordon <br...@architechies.com> wrote: > > As as been pointed out in the past, why not make a leading dot mean > static (including enum). This would be nice and consistent. > > And it would break the common pattern of doing things like: > > string.compare(otherString, options: [.caseInsensitive, .numeric]) > > Leading dot can only mean one thing; if it means "static member on the > type of Self", it cannot mean "static member on the inferred type of the > expression". > > Now, what might be nice is if you could say `Self.someCase` or > `Type.someCase` to access a static member without retyping the type name. > Alas, we are not so lucky as that. > > -- > Brent Royal-Gordon > Architechies > > -- -- Howard.
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution