Replies: 2 comments 1 reply
-
I feel this reduces readability and adds choice paralysis (since there are now 2 syntaxes to choose from instead of one). Programming languages generally stick to one of three forms of syntax and try to remain consistent throughout:
Mixing and matching within the same language is often a bad idea, unless you can't avoid it. |
Beta Was this translation helpful? Give feedback.
-
Personally, I find it less readable, as if you accidentally forgot to end the line. This can probably also lead to parsing errors in some complex cases. Especially if this affects not only functions, but also other blocks ( I assume that the editor perceives pressing Enter after 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. So I think it's reasonable to close this discussion. Thanks for the contribution nonetheless! |
Beta Was this translation helpful? Give feedback.
-
It could still be possible to write
:
when you write lambdas and other onelinersBeta Was this translation helpful? Give feedback.
All reactions