I often use this code pattern:
while(true) { //do something if() { break; } }
Another progr
I prefer the while(!) approach because it more clearly and immediately conveys the intent of the loop.