[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ternary operator patch
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 16 Sep 2010 13:57:03 +0400
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.
- References:
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Henk Boom
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Geoff Leyland
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Miles Bader
- Re: Ternary operator patch, David Kastrup
- Re: Ternary operator patch, Miles Bader
- Re: Ternary operator patch, David Kastrup
- Re: Ternary operator patch, Jonathan Castello
- Re: Ternary operator patch, Roberto Ierusalimschy
- Re: Ternary operator patch, Alexander Gladysh
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Jeff Pohlmeyer
- Re: Ternary operator patch, David Kastrup
- Re: Ternary operator patch, Michal Kolodziejczyk
- Re: Ternary operator patch, Michal Kottman
- Re: Ternary operator patch, steve donovan