[swift-evolution] Change subscripts to use colons
Brent Royal-Gordon
brent at architechies.com
Sun Jul 10 17:57:19 CDT 2016
> On Jul 9, 2016, at 11:48 AM, James Froggatt via swift-evolution <swift-evolution at swift.org> wrote:
>
> Subscripts are a hybrid of properties and functions, since they have a parameter list, as well as getters and setters, so use of either symbol will be unusual in this case.
>
> However, I think a colon is more suitable, since it implies the possibility to set the value.
Can you show us an example of the current syntax and your proposed replacement? I'm not sure what you actually mean by "use colons".
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list