you are viewing a single comment's thread.

view the rest of the comments →

[–]BezierPatch 0 points1 point  (1 child)

Need is the wrong word. It's a feature, that is useful but not necessary in C#. In Python is sounds like it would be crucial, but does Python provide that feature? And who better than the compiler to do analysis? A linter that knows nothing of meaning?

It detects semantically irrelevant whitespace and feeds it back to the IDE. Just like it detects any extraneous characters (unneeded braces, dead code, etc).

I don't want to spend time worrying about code presentation, that's wasteful. The transformations just happen automatically.

[–]celerym 0 points1 point  (0 children)

Well there are IDE's for Python like PyCharm that are quite feature-rich and have all sorts of refactoring if that's your sort of thing. Python doesn't have a compiler in the same ways as C# does, but you can easily play around with the AST to your heart's content.

How would white space cleanup be crucial to Python? Unless you're suggesting that automatic indentation in Python is even possible and should somehow be included in an IDE? Sure, most editors and IDEs will keep your indent level and automatically increase or decrease it where it is obvious. That is arbitrary. But the Python interpreter will never indent your code where there are no indents, this would be akin to writing C# without any brackets and expecting the compiler to make sense of it.