[swift-evolution] [Pitch] Adding a Self type name shortcut for static member access
andrey at tarantsov.com
Tue Apr 5 07:05:54 CDT 2016
> My preference would be for there to be only one Self, and have it always be the dynamic type of 'self'. Some people disagree, but I don't think it's all that onerous to have to write ClassName.foo if that's really what you specifically mean.
+1. There's just no way we want to explain two kinds of Selves to people.
However, we need to make sure it works in these contexts:
2) getting an unbound method
3) referring to static methods (including private ones)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution