- Pitch: Getter-setter functions

No, just discussed here and there since 2014. E.g. Parameterized Properties or Named Subscripts - #6 by anon9791410

The lack of named subscripts has always been a problem. Although they weren't taken out of the language, callAsFunction made get-only subscripts redundant. Settable parenthesis syntax would make settable ones redundant as well, except!

You cannot get rid of static subscripts, because that's the same syntax that initializers use. You could totally get rid of [] for instance members though.

1 Like