POV-Ray : Newsgroups : povray.advanced-users : Instantiation and terminiation....OOP & Povray? : Re: Instantiation and terminiation....OOP & Povray? Server Time
28 Jul 2024 10:24:48 EDT (-0400)
  Re: Instantiation and terminiation....OOP & Povray?  
From: Warp
Date: 25 Jan 2006 14:30:01
Message: <43d7d1b8@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> #if ((0.25 < clock) & (clock < 0.75))

  The problem with that is that it's hard to understand.

  If you say to someone "if 25 is smaller than the amount of money in
your wallet, you can come" he will probably have to stop for a moment
to think about what that means.

  People don't say nor think "is 25 smaller than the money I have?" but
they always think the other way around. That's why writing things like
"if (25 < money)" makes code confusing.

-- 
                                                          - Warp


Post a reply to this message

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