[swift-evolution] an observation on colons in variable type declarations

Jessy Catterwaul mr.jessy at gmail.com
Wed Feb 10 07:48:33 CST 2016


> However the current syntax, whilst inconsistent, is OK and therefore not worth changing.

Subscripts use arrows, despite them allowing setters. Properties use a colon instead of arrow. That at least needs to be standardized.

Personally, I see no need for the arrow we have today. It’s not even a real arrow character and so looks antiquated. 

https://forums.developer.apple.com/thread/16592


More information about the swift-evolution mailing list