lua-users home
lua-l archive

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


I don't think the proposed syntax really fits with what the word "or" means.

On Mon, 23 Dec 2019 at 15:30, Soni "They/Them" L. <fakedme@gmail.com> wrote:
I'd like to have the ability to convert, say:

switch (op) {
case OP_TAILCALL: {
   ...
   /*fallthrough*/
}
case OP_CALL: {
   ...
   break;
}
}

into:

if op == OP_TAILCALL then
   ...
   -- fallthrough
orif op == OP_CALL then
   ...
end

because it looks nicer this way I guess.



--
Cheers,

Chris