3 ms·
This is absolutely true. If I paste some c++ into my IDE with unbalanced braces, it can throw the whole file off. The real key is: treat excess indentation and
by kortex 6y ago
This is absolutely true. If I paste some c++ into my IDE with unbalanced braces, it can throw the whole file off.
The real key is: treat excess indentation and nesting as a code smell. Python should aim for 5 tabs deep max, imho. Anything else should be refactored into functions.
- belorn 6y agoI would add that the same is true for braces in c++. Debugging the differences between }}))} and }))}} can be quite difficult , as nested scopes is never easy in any language.