3 ms·
> Auto indenting that code block would indent the `someotherstatement;` line correctly and I would notice that mistake. In my experience that last part is som
by acdha 8y ago
> Auto indenting that code block would indent the `someotherstatement;` line correctly and I would notice that mistake.
In my experience that last part is somewhat optimistic for the implication that someone would notice it immediately.
> if I indent some code block wrong, I can't just fix the indentation using auto indenting in python, because the indentation is the semantics. There would be "nothing" to fix and the code would just run wrong.
This is true in some cases — most of the time you'll get an indentation error instead of it running incorrectly — but also why many editors have an auto-indent option for pasted code and autoformatters covert things like code which is consistently indented to match your project's indentation size.