Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Summing repeated counts for items stored in separate file

by mrpeabody (Friar)
on Jul 28, 2007 at 04:41 UTC ( [id://629252]=note: print w/replies, xml ) Need Help??


in reply to Re: Summing repeated counts for items stored in separate file
in thread Summing repeated counts for items stored in separate file

Initializing a variable in dmorgo's code would also be trivial. Your suggestion forces the programmer to do a lot of extra typing up front in order to maybe save a small amount of typing later, which seems like a poor tradeoff.

I would also argue that dmorgo's code has a clarity advantage in that it is immediately obvious which variables don't have default values and which do.

  • Comment on Re^2: Summing repeated counts for items stored in separate file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://629252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found