'while/else' (ugh) (was Re: [oclug] Ruby)
David F. Skoll
dfs at roaringpenguin.com
Fri Jun 27 16:14:22 EDT 2003
On Fri, 27 Jun 2003, Patrick Smith wrote:
(1)
> >>while condition
> >> blah with sideffects
> >>finally
> >> cleanup
> >>endwhile
> How about
(2)
> while condition
> blah with sideeffects
> endwhile
> cleanup
Because in (1), cleanup is executed only if the loop iterates at least once.
I'm not saying I _like_ it. I was just suggesting a clearer word than
"else".
--
David.
More information about the OCLUG
mailing list