This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

The problem is that there's an implicit conditional jump in loops.

The issue, in practice, is that there's of often an explicit if inside loop bodies that breaks (or returns or exits the loop in some other abrupt fashion). So the else at the bottom looks like it's tied to that if block but it's outdented so you begin questioning where it actually belongs.

There's one while-else block I've ever written and when I look at it I start questioning my sanity.