Python Indentation Debate
The cluster centers on debates about Python's significant whitespace and indentation as a syntax feature, including its pros for readability, cons like issues with copying code or newcomers, and comparisons to braces in languages like C, Java, and JS.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Indentation instead of syntax is still a crime.
It's not like code in other languages isn't indented.
Does the Python community struggle with indentation? I thought it was largely a non-issue.
This sounds like Python's significant whitespace: weird, off-putting for newcomers, but not actually a problem in practice.
A counter answer: C is not lisp, why should it be indented with spaces like lisp?
I use python extensively, and whitespace very much is an actual issue. Not a big one, but it is annoying every once in a while e.g. when copying code. Especially as autoindenting is very much hampered in that case, because the editor can't tell what the indent is supposed to be if multiple options are valid python. Dealing with braces instead is much easier. Not a deal-breaker or major issue, but an annoyance nonetheless.
No, the indentation is a feature.Your editor can help you with the editing. (And the problem you mention are exactly the same, if you write production code in other language. Your teammates will hopefully insist on consistent indentation in C or Java as well.)
Can you elaborate on what put you off Python's indentation?
How does the whitespace hurt readability when basically every styleguide and linter in other languages indents code blocks?
No, the indentation is for human readability only.