lua-users home
lua-l archive

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


Jonathan Goble <jcgoble3@gmail.com> wrote:

> On Sun, Jan 28, 2018, 5:23 PM Sean Conner <sean@conman.org> wrote:
> [1]     Related to that:
> 
>                 0 <= x < 15
> 
>         but I don't know of any language that supports that type of check.
> 
> Python has supported that syntax for a long time.

And yet Python doesn't support switch case? Amusing! :)

I was thinking of adding this to Lua++ as well, given it is a pretty common
construct and has the bonus that any variables in the expression will only
be evaluated once.

~Paige