Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: The speed of blessed hashrefs, the power of Moose - how to get both?

by dynamo (Chaplain)
on Nov 20, 2011 at 19:55 UTC ( [id://939103]=note: print w/replies, xml ) Need Help??


in reply to Re: The speed of blessed hashrefs, the power of Moose - how to get both?
in thread The speed of blessed hashrefs, the power of Moose - how to get both?

This is a very important point, it's a stacked comparison. You can either put in checks in the hashref (though it might provoke argument over what exactly would be equivalent), or you can take out the checks from Moose.
  • Comment on Re^2: The speed of blessed hashrefs, the power of Moose - how to get both?

Replies are listed 'Best First'.
Re^3: The speed of blessed hashrefs, the power of Moose - how to get both?
by ForgotPasswordAgain (Priest) on Nov 23, 2011 at 23:55 UTC
    If you're going to take the checks out, why use Moose? Seriously, just use a href directly. (When do you really need method calls to attributes? Encapsulation? Hello, mantra. You're adding these unnecessary layers when you don't really need it. If you need it later, add it later! Perl is not compiled. Why are you creating a static API?)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found