Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Simple Mouse/Moose question

by stvn (Monsignor)
on Feb 24, 2011 at 15:26 UTC ( #890000=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Simple Mouse/Moose question
in thread Simple Mouse/Moose question

lazy => 1 is unnecessary on "n" (since it doesn't rely on anything), which is why I left out.

True, the reason i put it in though was mostly future-proofing. It doesn't add much overhead (it really just spread it out actually) and I find that having everything in the dependency chain be lazy just makes things easier to refactor and tweak later on.

The only other difference between our code is that I inlined the default builders. I don't think having to look somewhere else in the file for that code is appropriate.

Personally I agree, I tend to use default more then I use builder. In fact, I only use builder when I want to easily allow subclassing of the builder method.

-stvn


Comment on Re^3: Simple Mouse/Moose question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-09-03 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (34 votes), past polls