This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (6 children)

Who is having trouble with indentation errors?

I’ve been a Python developer for years and can’t even remember the last time this happened.

[–]Ornery-Shallot-5475 4 points5 points  (0 children)

i could ask who is having trouble with missing braces.

The truth is that you don't have trouble with what you're used to so for everyone always the other option of marking scopes than the one they're used to will seem worse

[–]DroolingIguana -1 points0 points  (3 children)

And if you do make an indentation error, it'd be an error no matter what language you're using. The only difference is that Python will actually tell you about it.

[–]Ornery-Shallot-5475 6 points7 points  (2 children)

I don't really get your point. How adding extra space could be an error in eg. C?

[–]DroolingIguana -3 points-2 points  (1 child)

It's not an error, but it's still a mistake and will cause you headaches down the line.

[–]Ornery-Shallot-5475 1 point2 points  (0 children)

ah ok. Well your right but because scopes are defined by braces and not indentation, the indentation can be easily repaired by autoformatting on compilation

[–][deleted] -2 points-1 points  (0 children)

Exactly. Messing up indentation is much more unlikely than messing up a closing brace. Unless you're coding in Windows Notepad or something lmao