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
Domain Nodelet?
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 exploiting the Monastery: (4)
As of 2021-08-05 07:57 GMT
Find Nodes?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)

    Results (44 votes). Check out past polls.