[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Ternary operator patch
- From: David Kastrup <dak@...>
- Date: Fri, 10 Sep 2010 11:42:28 +0200
Miles Bader <email@example.com> writes:
> David Kastrup <firstname.lastname@example.org> writes:
>>> [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...]
>> A child has an extremely small implementation cost as well. You have to
>> keep the followup costs in mind.
> Hmm, given that it arguably could make much code _clearer_, the followup
> costs may actually be less than zero... :)
> [Note I'm talking about a simple "if EXPR then EXPR else EXPR", not
> something fancy that allows embedded blocks or whatever.]
Do you really think you can keep children from growing up?