2 ms·
I'm amazed people are using editors that require manually tweaking indentation. I mean, apart from making sure the code is in the right block.
by globular-toast 3y ago
I'm amazed people are using editors that require manually tweaking indentation. I mean, apart from making sure the code is in the right block.
- samatman 3y agoIn languages which don't use indentation semantically, I always end up catching a bug, sooner or later, by running code through a formatter. It's usually in a complex tree of nested if statements, some code I thought was part of one group gets moved to be in another group, making it obvious where the mistake was. Python can't do that. It's one of a few things about the language which is "nice" when using it for simple tasks, but which makes more complex programming pointlessly error-prone.