lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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