Skip to content
Prev 200779 / 398503 Next

Unnecesary code?

On Thu, 19 Nov 2009 00:13:27 +0100 Duncan Murdoch
<murdoch at stats.uwo.ca> wrote:
Seriously? What would you gain by rejecting the change?

I think the gain is obvious, even if not essential: the code is 
cleaner. If there is a choice between two different pieces of code 
that have the same effect, choosing the simpler makes it easier to 
maintain the code, and easier for a casual user to understand 
what's going on. Anyone looking at the original code for the first 
time will have to realise that poldpps is a nuissance variable with 
no practical importance and no gain whatsoever, the change cuts 
this need.  

There is also a negligible loss in performance when the inessential 
stack variable is allocated.

-- Hun