|
|
On 8/22/2011 8:04, Warp wrote:
> Darren New<dne### [at] sanrrcom> wrote:
>> bool_b = bool_a ? min(...) : false
>
> That seems to have redundancy. How about:
>
> bool_b = bool_a || min(...);
>
More efficient perhaps, but less readable IMO. You don't really want to set
bool_b to the value of bool_a, so this I would consider misleading. There's
an implication that the value of bool_a propagates, whereas in actuality
it's more a gating value.
--
Darren New, San Diego CA, USA (PST)
How come I never get only one kudo?
Post a reply to this message
|
|