Replies: 1 comment
-
We prefer not to have multiple syntax options doing the same thing. For example, we have two dictionary styles, but the Lua style allows you to omit quotes for keys. We have two setter/getter styles, but the alternative style allows you to use a separate function like Also, judging by the reactions and activity over almost 2 years, this proposal did not receive support. However, we have 2 precedents for optional empty parentheses:
Of course, we can say that they exist for historical reasons and this is not a sufficient reason to introduce another exception. It is also unclear what benefits the optional empty parentheses provide. #8057 requested support for parentheses, not their optionality. Let's keep this discussion open for a while and see if the community shows interest in it, maybe new arguments will appear. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ruby:
In GDScript it could be like
Or even without
:
(See #4699)Beta Was this translation helpful? Give feedback.
All reactions