lua-users home
lua-l archive

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


On Fri, Aug 14, 2015 at 1:55 PM, Soni L. <fakedme@gmail.com> wrote:
> With orif:
>
> ```lua
> local flag = false
> if i == 1 then
>     flag = true
> orif i == 2 then -- explicit fallthrough
>     print(flag)
> else -- default
>     print "Unknown!"
> end
> ```

Without commenting on the idea itself, I think "thenif" makes more
sense than "orif".

-- 
Patrick Donnelly