[swift-evolution] Discussion: Last chance to rename .self and .Self?
Adrian Zubarev
adrian.zubarev at devandartist.com
Fri Jul 15 14:28:33 CDT 2016
You might have a look at our discussion thread. There is a huge overlap on your bikeshedding.
https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon–20160711/024439.html
--
Adrian Zubarev
Sent with Airmail
Am 15. Juli 2016 um 21:25:50, Brandon Knope via swift-evolution (swift-evolution at swift.org) schrieb:
July 27th is last day for breaking source changes for Swift 3...so I thought I would bring this up one final time.
Opinions:
- .self and .Self do not adequately convey what they do without some mental gymnastics
- self has somewhat two meanings (accessing a property on the type and getting the type of the object)
- We can get into a funky situation where we have self.someVar.self which looks odd (though symmetric!)
- What do we call these two selves? Postfix and prefix self? (I.e. Is it googleable?)
Ideas:
- rename to .type and .Type
- more bikeshedding? There has to be a better way to express these types other than .self and .Self
Brandon
_______________________________________________
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/20160715/21aa10ea/attachment.html>
More information about the swift-evolution
mailing list