3 ms·
"in a language that uses whitespace for logic" This argument kind of died when python became one of the most popular programming languages used.
by ndthrowaway 2y ago
"in a language that uses whitespace for logic"
This argument kind of died when python became one of the most popular programming languages used.
- everforward 2y agoIt’s not completely that white space is bad, but in particular that white space is very difficult to template relative to something character-delimited like JSON or s expressions. In JSON or s expressions, the various levels of objects can be built independently because they don’t rely on each other. In YAML, each block depends on its parent to know how far it should be indented, which is a huge pain in the ass when templating.
- oblio 2y agoYeah, but Python has actual for loops.
- cassianoleal 2y agoPython uses whitespace for scoping - not for logic. That said, the same is true for YAML.