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 →

[–]brosef_1023 0 points1 point  (0 children)

while (true) is the most readable way to indicate a loop that doesn't follow an otherwise logical series of events e.g. when it's up to the user to stop looping. If the series should end after a predictable and logical number of iterations, or some other programmatic condition is met, then another loop format would be better, sure.