Re: Ternary operator patch
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Ternary operator patch
- From: steve donovan <steve.j.donovan@...>
- Date: 2010年9月16日 09:20:44 +0200
On Sat, Sep 11, 2010 at 8:18 AM, Alexander Gladysh <agladysh@gmail.com> wrote:
> Do we *really* need a ternary operator in Lua?
Just to be different, how about a pseudo-function
choose(cond,val1,val2) with the appropriate lazy evaluation?
Note that a pseudo-function version of 'assert' would also be useful
for those cases where the error case involves significant work.
steve d.
- 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