3 ms·
As people have said in other comments, no static analysis can read your mind. You can have valid Python that contains logic errors due to indentation mistakes,
by smt88 7y ago
As people have said in other comments, no static analysis can read your mind. You can have valid Python that contains logic errors due to indentation mistakes, and you can only catch it at runtime. Period.
That said, everything is a trade-off. Semantic whitespace has downsides, but if the upsides outweigh, then it's a great idea.
At this point, I have no idea what the upsides are, other than saving a few keystrokes (which truly is solvable with a good editor).
It's like removing the ending semicolon in JavaScript. Sure, it almost never causes a problem, but sometimes it does, so why do it?
- kstrauser 7y agogotofail (https://www.imperialviolet.org/2014/02/22/applebug.html https://www.imperialviolet.org/2014/02/22/applebug.html) was written in C with brackets and everything.