lua-users home
lua-l archive

Re: [proposal] "or if" - run this next block if the previous one ran *or if* the condition is true

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


On 2019年12月23日 4:42 p.m., Egor Skriptunoff wrote:
On Mon, Dec 23, 2019 at 5:30 PM Soni "They/Them" L. wrote:
 if op == OP_TAILCALL then
    ...
    -- fallthrough
 orif op == OP_CALL then
    ...
 end
 because it looks nicer this way I guess.
The meaning of "orif" keyword is not intuitive-clear to a reader.
I would prefer to use explicit "goto" in case I need to implement fallthrough.
it's definitely more intuitive than switch-case fallthrough by a long shot.

AltStyle によって変換されたページ (->オリジナル) /