'while/else' (ugh) (was Re: [oclug] Ruby)
David F. Skoll
dfs at roaringpenguin.com
Fri Jun 27 22:07:49 EDT 2003
On Fri, 27 Jun 2003, Rod Giffin wrote:
> while (condition) { // run while condition is true
> do some instructions;
> } else { // the condition was never true
> do some instructions;
> }
How often does that actually happen? When it does, how difficult
is it to write:
if (condition) {
while (condition) {
// loop
}
} else {
// whatever
}
--
David.
More information about the OCLUG
mailing list