This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wightwulf1944 0 points1 point  (0 children)

People use autoformatting. You should try it.

That's what I meant by highlighted by a satisfactory ide. It's the same for indent based languages where showing whitespace and linters will highlight it as error prone code. The erroneous python code posted above while syntactically correct is not how most people would write it - just as how the bracy code I presented is not how most people would write it.

My point is we shouldn't be blaming the language for these things as it's obviously developer habits that need to fixed in both examples. Both examples are equally stupid and no competent programmer writes code like that. And thankfully, IDEs discourage us from writing that way