if true: (
echo "You can do this if you want"
block: (
echo "but everyone will hate you"
)
)
To make this compile, it should be
if true: (
echo "You can do this if you want"; # note here
block: (
echo "but everyone will hate you"
)
)
Plus, the semicolon will give some extra hate :o)True. If you don't want semicolons, you can do this instead:
(if true:
echo "You can do this if you want"
(block:
echo "but everyone will hate you"
)
)
Coming from python ... and new (happy) nim'er ;-)
I've choose nim, over rust, just because I prefer the nim syntax (a lot!) (and nim interfaces very well with python !!!)
Indent war, was a lot present 20years ago in python discussions ... But now, still python is number1 (tiobe): the debat is closed ... It's, clearly, the way to go ;-)
Life is better without braces ...
Making double indentations (indent AND braces) is ridiculous ... and braces are useless/painful no one makes its programs in one-line style ... Readabilities count ! nowadays !