POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
10 Aug 2024 15:21:14 EDT (-0400)
  Re: The Language of POV-Ray  
From: Ron Parker
Date: 9 Mar 2000 19:53:59
Message: <slrn8cgidf.1op.ron.parker@linux.parkerr.fwi.com>
On Thu, 09 Mar 2000 23:14:57 +0100, Tor Olav Kristensen wrote:
>If you use an editor with copy and paste features,
>I would guess that the maximum number of extra
>keystrokes you would have to do is about 7 or 8.
>(Or even fewer if you use a mouse.)

There are other reasons to prefer += in a case like that.  If I have 

#declare [big complicated expression] += 3;

and 

#declare [big complicated expression] = [big complicated expression]+3;

and I'm trying to debug the code, I don't have to verify that the 
big complicated expression in the first statement matches anything.

Also, it helps parse time if POV only has to parse the big complicated 
expression once.


Post a reply to this message

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