Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Moose is lovely

by revdiablo (Prior)
on Feb 29, 2008 at 20:26 UTC ( #671287=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Moose is lovely
in thread Moose is lovely

Just one suggestion, if your "default" subs get large, it is usualy a good idea to convert them to 'builder' methods instead.

Oh, very cool. I'd missed the builder bits while reading the docs. It does seem like a nice shortcut, and I kind of like the additional semantic alignment. I'm actually building the value, not setting a default value. Granted, it doesn't make a practical difference. But when there're two ways to do something, and one of them is a better semantic match, I usually choose that one.


Comment on Re^4: Moose is lovely
Download Code
Re^5: Moose is lovely
by stvn (Monsignor) on Feb 29, 2008 at 22:26 UTC
    Oh, very cool. I'd missed the builder bits while reading the docs. It

    Unfortunately, it is not as well documented as it could be, we just completed a big refactoring of the type and role systems and some of the new features have not gotten documented well enough yet. The next few releases should be mostly doc updates, which should remedy this situation.

    -stvn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-09-23 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (241 votes), past polls