Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Moose is lovely

by revdiablo (Prior)
on Feb 29, 2008 at 20:26 UTC ( [id://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.

    -stvn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-19 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found