Indentation in Nim

2021-11-06 Thread dom96
I don't think it's productive to discuss this: there is no chance Nim will change such a fundamental part of it's syntax. I'm locking this thread.

Indentation in Nim

2021-11-06 Thread manatlan
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 c

Indentation in Nim

2021-11-06 Thread xigoi
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" ) ) Run

Indentation in Nim

2021-11-06 Thread gemath
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" ) ) Run Plus, the semicolon will give some extra hate :o)

Indentation in Nim

2021-11-06 Thread xigoi
`if true: ( echo "You can do this if you want" block: ( echo "but everyone will hate you" ) ) ` Run

Indentation in Nim

2021-11-06 Thread Araq
Tools that throw away whitespace are broken tools. Broken tools should not guide syntax design.

Indentation in Nim

2021-11-05 Thread aEverr
what exactly is your point? you just rebutted both of your options

Indentation in Nim

2021-11-05 Thread Cusaint
I think that people do not like indentation is because copying and pasting code from webpages and other sources (maybe from PDF files) might not let the copying of the code correctly. Therefore it will not be pasted as it should (and then the code will/might not run as it is supposed to). Files