Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Introducing Moops

by Anonymous Monk
on Aug 22, 2013 at 02:31 UTC ( #1050444=note: print w/ replies, xml ) Need Help??


in reply to Introducing Moops

but for those occasions when you want the backing of a meta object protocol,

When is that?


Comment on Re: Introducing Moops
Replies are listed 'Best First'.
Re^2: Introducing Moops
by tobyink (Abbot) on Aug 22, 2013 at 06:48 UTC

    The MOP is useful when you need to perform lots of class introspection. It's therefore a requirement for a lot of class-building extensions - i.e. most of the MooseX namespace, such as MooseX::Clone, MooseX::Privacy, MooseX::MultiMethods, etc.

    That is; you probably want to use Moose if there's some MooseX module that catches your eye, or you need to delve into $class->meta; and use Moo otherwise.

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2015-07-29 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls