[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ternary operator patch
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 17 Sep 2010 08:05:54 +0200
On Thu, Sep 16, 2010 at 6:44 PM, David Kastrup <dak@gnu.org> wrote:
> It would appear that Lua's clean syntax appeals to language improvers
> like a clean wall to graffiti sprayers.
Definitely the most entertaining remark to appear in this thread.
As I see it, there are two cases; one in which the two conditional
values are simple literals or expressions, and another in which the
conditional values involve expression evaluation. The first can be
handled by defining a simple choose() function, and the second can be
done with good old if-else.
Writeability is less important that _readability_, and any half-decent
editor can do much of the actual typing involved.
steve d.
- References:
- 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, Eric Man
- Re: Ternary operator patch, Tomas Guisasola Gorham
- Re: Ternary operator patch, Eric Man
- Re: Ternary operator patch, Tomas Guisasola Gorham
- Re: Ternary operator patch, David Kastrup