[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Named loops and blocks for use with break
- From: Doug Rogers <rogers@...>
- Date: Thu, 06 Oct 2005 06:59:44 -0400
Rici Lake wrote:
> The vocabulary comes from a really interesting paper by Olin Shivers
> (http://www.cc.gatech.edu/~shivers/papers/loop.pdf)
That is indeed an interesting read.
> There are only two constructs:
> for <table or numeric specification> do <body> end
> and
> do <body> end
> <iteration-control> ::= ( 'unless' | 'until' | 'when' | 'while' )...
Thank you for sharing your patch. I like it, though I think some of the
iteration controls are hard to read - especially the ones that perform a
'continue' operation. With time I'm sure I would grow more comfortable
with them. I'd prefer 'break when' and 'continue when'. The 'when'
keyword could then be used to support a 'case' statement implementation.
And now we're off on another grand exploration!
I have downloaded your patch but I do not think I will be trying it
anytime soon. I haven't even installed 5.1 yet. That might happen soon
now that a feature freeze seems to be in the works.
Doug
--
--__-__-____------_--_-_-_-___-___-____-_--_-___--____
Doug Rogers - ICI - V:703.893.2007x220 www.innocon.com
-_-_--_------____-_-_-___-_--___-_-___-_-_---_--_-__-_