[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ternary operator patch
- From: Miles Bader <miles@...>
- Date: Sat, 11 Sep 2010 13:58:13 +0900
Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:
> I have an issue, but I am not sure it is a "long-term" one. I think
> the proposed syntax, without "end", will be quite confusing to some
> people, given that the almost identical if command must have "end".
> On the other hand, a syntax with "end" is cumbersome.
Actually my main complaint about using "end" in an expression-if
construct would be that it's misleading -- "end" sort of means "end of a
sequential list of things", whereas the proposed construct wouldn't have
a list of things at all, just a single thing. So "end" is both
unnecessary and misleading.
-miles
--
Non-combatant, n. A dead Quaker.
- 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