Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-05-25 11:20 GMT
Find Nodes?
    Voting Booth?