Closed gperciva closed 1 year ago
I'm interpreting "forever loop" to mean a loop which has no exit conditions, not merely one which doesn't have exit conditions in the for/while clause. So I'd say both of these are correct:
for (;;) {
...
}
do {
if (...)
break;
...
} while (1)
Ok, rebased to remove the change to do... while
loops.
I'm not certain about the last commit. Are "forever loops" the same thing as "infinite loops"?
I suspect that you'll say "let's keep the current way of defining loops; just add a note to STYLE describing our current practice".