lua-users home
lua-l archive

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

On Thu, Sep 16, 2010 at 11:10 AM, Michal Kottman <> wrote:
> local x, y, z
> z = choose(y~=0, || x/y, || 0)
> However, the syntax sugar for anonymous functions has also been
> discussed on this list before (and rejected, AFAIK).

Yes personally I think it would be a great addition but there were
strong opinions against it.

BTW, with the re-use of closures in 5.2 the above choose idiom becomes
more efficient.