[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: continue/repeat...until false dichotomy
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 18 Feb 2010 09:51:09 -0200
> >> By the way, it would also be possible to just use "repeat" which already
> >> is a reserved word. If its use is restricted to the same places where
> >> "break" and "return" are allowed, I don't think that there is syntactic
> >> ambiguity.
> >
> > [...]
>
> Depends on whether the next token is "end". [...]
To work as break/return, 'else', 'elseif', and 'until' should also
be accepted:
if a then break else f() end -- valid
repeat break until true -- valid
That would result in this:
repeat repeat until true -- ??
-- Roberto
- References:
- Re: continue/repeat...until false dichotomy, Matthew Wild
- Re: continue/repeat...until false dichotomy, David Given
- Re: continue/repeat...until false dichotomy, David Kastrup
- Re: continue/repeat...until false dichotomy, Mark Hamburg
- Re: continue/repeat...until false dichotomy, David Kastrup
- Re: continue/repeat...until false dichotomy, Majic
- Re: continue/repeat...until false dichotomy, David Kastrup
- Re: continue/repeat...until false dichotomy, David Kastrup
- Re: continue/repeat...until false dichotomy, Mark Hamburg
- Re: continue/repeat...until false dichotomy, David Kastrup