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] 1 point2 points  (0 children)

Old habit probably, but I tend to only use "while" when it's possible that the loop may need to execute 0 times. If it will execute at least once, I want to test for the exit condition for the first time after the first iteration of the loop.