[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: orif
- From: Duncan Cross <duncan.cross@...>
- Date: Fri, 14 Aug 2015 19:51:22 +0100
On Fri, Aug 14, 2015 at 6:55 PM, Soni L. <fakedme@gmail.com> wrote:
> The orif Idea
> =============
>
> orif (possible operators: `|if`, `orif`, `or if`, ...) is a construct that
> allows if statements with **explicit** fall-through.
If you want explicit fall-through, I feel like the right way would be
to make it a special case that goto can "see" a jump-label if it comes
immediately after the "else" or "elseif (...) then" that ends the
current block.
(But personally, it's not something that I miss having, when writing Lua code.)
-Duncan