News for hackers. Stuff that matters.
Re:The optional “else” in Python loops by blahedo on Friday July 18, 2014 @04:12AM (#8052115)
Remember that I was talking about novice programmers, here. I'll concede that "idiomatic" was a bit strong (and the True/False thing was a brain fart), but I think my main point stands: encouraging the use of an "else:" that can attach to loops, with an unobvious and somewhat nuanced semantics, is not kind to newcomers. And the fact remains that the difference between a correct implementation and one that is wrong in exactly the way that a lot of newcomers get it wrong is nothing but indentation.

There are no comments on this comment yet.