[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Ternary operator patch
- From: Miles Bader <miles@...>
- Date: Fri, 10 Sep 2010 15:56:59 +0900
steve donovan <email@example.com> writes:
>> Does that still work if you want the false or nil from good()?
> No! So I'm convinced, it can't be done with the existing operators -
> sorry for the noise.
Not only is the expression-if more correct, it's also more clear (when
an "if" is what you want to expression)...!
[I admit, an if-else operator is something I've wanted quite a few times
in the past, and given the extremely small implementation cost, seems
like it's almost a no-brainer...]
People who are more than casually interested in computers should have at
least some idea of what the underlying hardware is like. Otherwise the
programs they write will be pretty weird. -- Donald Knuth