[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: orif
- From: Patrick Donnelly <batrick@...>
- Date: Fri, 14 Aug 2015 16:02:19 -0400
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