4 ms·
Python's use of whitespace is, dare i say, perfect. It makes everything more readable. I've never seen cases where indentation is ambiguous. I think this is b
by timacles 3y ago
Python's use of whitespace is, dare i say, perfect.
It makes everything more readable. I've never seen cases where indentation is ambiguous.
I think this is because in a programming language indentation happens in a small set of specific situations like `for` loops and such. Either you indent right or you get an error. On the rare occasion the wrong indentation level can assign a variable to the wrong value, but that is a rookie mistake.
Whereas in YAML, everything starts out ambiguous. Everything is context sensitive. Indents change the meanings of things in slight, unclear ways. Its a constant source of confusion
- x3haloed 3y agoThe legibility argument. What if I told you that C-style syntax can be formatted to use indentation exactly as you prefer?