I've always been partial to:
while( 1 ) { # do stuff last if BREAK-CONDITION }
sure you have to re-evaluate the conditional but that's a price I'm willing to pay for better readability. redo inside one block seems silly and if I used it deep in nested blocks (with a label) I'd feel dirty.
-derby
In reply to Re: do/redo or for(;;): what's Kosher?
by derby
in thread do/redo or for(;;): what's Kosher?
by rje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |