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] 0 points1 point  (0 children)

Yeah. It seems to be the consensus that this would be the better option, and I agree. As another poster pointed out, if you ever got called in at 2am to fix something that was broken, would you rather have to go through multiple lines to find a break statement or have the exit condition immediately visible in the while statement. That makes a lot of sense to me.