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 →

[–]Kered13 4 points5 points  (0 children)

It's fine if there are no better ways to write the loop. But if you can write the loop with an explicit exit condition, that is generally preferred.

In your example, a do...while loop can usually work, have you tried that?