Hacker News new | ask | show | jobs
by omarforgotpwd 1970 days ago
The problem is we don't always write perfect code, so if you forget to return or break on any given branch (I.e. in some else statement) you could get stuck in the loop forever. Remember Apple's famous goto fail; SSL bug? Sometimes it's not so easy to eyeball the code and follow the execution flow.

Specifying the condition for the loop up front makes me feel more confident about the loop safely concluding once the work is done.