Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: named arguments

by FoxtrotUniform (Prior)
on Nov 21, 2004 at 08:26 UTC ( #409344=note: print w/ replies, xml ) Need Help??


in reply to named arguments

If you have more arguments than will usually fit on one (72-column, say) line, or if you expect that a function's arglist will change quite a bit over time, then named params are the way to go. Mostly, I try to avoid long arglists (I don't really use Perl's OO system, although one might say that I tend to write object-oriented code); anything that's hard to work with (like a long arglist) is a red flag for me, and I try to break it up into easy to work with pieces.

--
Yours in pedantry,
F o x t r o t U n i f o r m

"Anything you put in comments is not tested and easily goes out of date." -- tye


Comment on Re: named arguments

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-09-17 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (62 votes), past polls