[swift-evolution] [Pitch] Rename `x.dynamicType` to `x.Self`

Andrey Tarantsov andrey at tarantsov.com
Fri Apr 15 02:54:38 CDT 2016


> I do not think that I was conflating these two aspects. Using #type(self) would return the particular type of the current instance (dynamic type) while using #type(A.var) would return the declared (static) type of the property.

Taras, to me personally, #something suggests evaluation at compilation time, so I would be *extremely* surprised if #type would return a dynamic type, and #dynamictype is just an abomination, in every way worse than something.dynamicType.

A.



More information about the swift-evolution mailing list