Re:Zed now predicts your next edit with Zeta, our new open m...
by kstrauser on Friday February 14, 2025 @10:38AM
(#43049440)
OTOH I’ve written Python professionally for about 25 years and I truly don’t think I’ve ever seen a bug due to accidental mis-indentation like that.
[ Parent
| on HN ]
Re:Zed now predicts your next edit with Zeta, our new open m...
by lostdog on Friday February 14, 2025 @03:41PM
(#43052860)
When I worked in python I made this exact mistake monthly.
Re:Zed now predicts your next edit with Zeta, our new open m...
by kstrauser on Friday February 14, 2025 @03:58PM
(#43053008)
How, 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.
Re:Zed now predicts your next edit with Zeta, our new open m...
by lostdog on Friday February 14, 2025 @05:27PM
(#43053793)
Cut and pasting code to move it around. Every editor was just slightly jittery about keeping the indentation levels consistent.
Re:Zed now predicts your next edit with Zeta, our new open m...
by lukaslalinsky on Saturday February 15, 2025 @02:03AM
(#43056515)
Completely agree, this is a common argument ever since Python existed. I've also used it for almost 25 years and these kind of indentation errors just don't happen. I see it the same as forgetting closing brace. Python programming writing C code might forget it initially, but C programmer absolutely will not forget it, it's in their muscle memory. And the same applies for dealing with indentation.