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

Re^2: API design - if you're expecting a scalar and an array ....

by Porculus (Hermit)
on May 23, 2009 at 23:32 UTC ( [id://765870]=note: print w/replies, xml ) Need Help??


in reply to Re: API design - if you're expecting a scalar and an array ....
in thread API design - if you're expecting a scalar and an array ....

I'm not sure that using a hashref for XML attributes is automatically a good idea. You might want to be able to check the list for duplicates and warn about that, rather than silently discarding all but the last instance.

Frankly this is one instance where PBP is on shaky ground. You don't actually get the error at compile time, and you don't get it reliably at all. You really aren't gaining much.

  • Comment on Re^2: API design - if you're expecting a scalar and an array ....

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found