I often use this code pattern:
while(true) { //do something if() { break; } }
Another progr
No, that's not bad since you may not always know the exit condition when you setup the loop or may have multiple exit conditions. However it does require more care to prevent an infinite loop.