Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Thoughts on "one function, flexible arguments"?

by 1nickt (Abbot)
on Aug 28, 2019 at 23:34 UTC ( #11105196=note: print w/replies, xml ) Need Help??


in reply to Thoughts on "one function, flexible arguments"?

Hi, I would say bad idea because not easier for users as they then have to keep track of which functions they use are liberal and which are not, and definitely not easier for maintainers.

FWIW I like Method::Signatures a lot for sub signatures and basic param validation, and it has the advantage that you can document the function with the sdame signature you use with it, and the user knows what the API is.

Hope this helps!


The way forward always starts with a minimal test.
  • Comment on Re: Thoughts on "one function, flexible arguments"?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2019-10-18 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?