Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-11-30 20:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found