4 ms·
You used a buggy beautifier that mishandled some code, and you blame significant whitespace? For that to be valid criticism, it must be particularly hard to wr
by Someone 9y ago
You used a buggy beautifier that mishandled some code, and you blame significant whitespace?
For that to be valid criticism, it must be particularly hard to write a beautifier for languages with significant whitespace relative to other languages.
I don’t think it is. Beautifying C, for example, also can be tricky in the presence of nested comments (potentially of different types) and nested if statements, some without else clauses, some without {}.
- amorphid 9y agoThat is his point, I think. He doesn't want to be exposed to errors related to whitespace in the code. I feel the same way, and it's the number one reason I avoid Python.
- userbinator 9y agoBeautifying C, for example, also can be tricky in the presence of nested comments C comments do not nest.
- dllthomas 9y agoSince C99, you've been able to have end-of-line comments inside a block comment.
- hellofunk 9y agoPython and emacs are both popular, and I'm talking about default indent behavior for python in emacs, not some fringe or esoteric plugin for beautifying. If that's buggy, then there's a larger problem in my opinion.
- marcosdumay 9y agoMixing tabs and spaces in Python leads to ambiguities. Actually, in Haskell too, but as the GP said, it is almost impossible that it becomes a problem on practice.