top | item 38422777

(no title)

owenbrown | 2 years ago

It boggles my mind that any developer of a new language wouldn’t use Python’s significant use of white space.

You’re able to fit more code on a screen, and it’s less visual noise. It’s like Pareto better. I really don’t get why others don’t copy it.

discuss

order

lamontcg|2 years ago

Playing around with ML and being forced to use python, I find having no block termination character and selecting which context a line of code is in by how much you un-indent it, is the worst.

Give me braces and rip a formatter across the whole codebase and be done with it.

Furthermore, I think that the trend of compilers/interpreters caring about whitespace formatting rules should really end. You can't ever force everyone in the world to write aesthetically pleasing code in your language and someone out there will always be able to write a complete trainwreck, and everyone disagrees on what is or is not aesthetically pleasing. Leave the problem up to configurable code linters where it belongs. Let people make "mistakes" (in your eyes) if they want to.