lua-users home
lua-l archive

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


On Thu, Sep 16, 2010 at 13:31, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Thu, Sep 16, 2010 at 11:10 AM, Michal Kottman <k0mpjut0r@gmail.com> 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.

Shameless plug:

If we're adding new syntax, then I'm for table append operator!

(Can't find Luiz's post about it though :-( )

Alexander.