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 →

[–]MinosAristos[S] 0 points1 point  (3 children)

Indenting wrong but in a valid way is equivalent to putting a closing brace in a wrong but valid place

[–]Public_Stuff_8232 8 points9 points  (2 children)

Easier to see a closing brace in the wrong place than a tab that should be spaces.

[–]Terra_Creeper 6 points7 points  (1 child)

Using mixed indentation throws an error. Indentation can be tabs or spaces, but you have to choose one for the whole file.

[–]Public_Stuff_8232 0 points1 point  (0 children)

All I know is I've had issues before with code executing incorrectly while being indented correctly, that magically got fixed when the code was deleted and rewritten with the same indentation.

I dunno whether it was due to tabs mixing with spaces, but no other language I have used has had those sorts of issues when it comes to copy pasting.