POV-Ray : Newsgroups : povray.off-topic : Programming style question - specifically Python : Re: Programming style question - specifically Python Server Time
29 Jul 2024 20:23:22 EDT (-0400)
  Re: Programming style question - specifically Python  
From: Darren New
Date: 25 Aug 2011 20:08:46
Message: <4e56e40e@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.