[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ternary operator patch
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 16 Sep 2010 11:31:35 +0200
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.
- 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