by goto11 · 8y ago · 0 comments
You'd be surprised how many times I've got the indentation wrong in Python.
If a body gets > 20 lines or so, it's easy to miss one statement that ought to be intended.
The best examples are languages like Lua and Ruby, where you have to write it as if .. then .. end or if .. then .. else .. end. Alternatively, in the curly brace family, it's the ones that make braces mandatory in this situation, like Go - if ... { ... }.
I do think Python has the simplest and most logical solution though.