4 ms·
When I worked in python I made this exact mistake monthly.
by lostdog 2y ago
When I worked in python I made this exact mistake monthly.
- kstrauser 2y agoHow, though? Every code editor I've used supports holding indentation at a certain level until you change it, so if you write: if foo: bar() and hit enter after the "bar()", it would drop you down so that the next thing you type would be under the "b". It's not really different from using curly brackets from the perspective of typing in code.
- lostdog 2y agoCut and pasting code to move it around. Every editor was just slightly jittery about keeping the indentation levels consistent.