Allow to use '{ }' to enclose blocks of code #4760
Replies: 2 comments
-
This was already proposed multiple times in the past, and it was rejected: #1555 |
Beta Was this translation helpful? Give feedback.
-
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 The alternative syntax could be seen as providing additional capabilities, such as being more convenient for code generation. However, this is quite controversial and not well justified. 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.
-
Instead of necessarily use
:
for scopes of code blocksallow to optionally use bodies enclosed by curly brackets
{ ... }
So both sides (Pythonic and C) would be happy.
Beta Was this translation helpful? Give feedback.
All reactions