Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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
Replies are listed 'Best First'.
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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2015-11-30 08:28 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (765 votes), past polls