Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Using ArrayRef data members in Moose

by spacebat (Beadle)
on Jul 04, 2008 at 03:11 UTC ( #695504=note: print w/ replies, xml ) Need Help??


in reply to Re: Using ArrayRef data members in Moose
in thread Using ArrayRef data members in Moose

Sometimes, a blessed hashref with cut'n'paste mutators is the right way to go.

That's when I use Coat;

Sure Moose tries to only pull in the parts you need, but it does rely on a fair few dependencies for what I want 95% of the time, just a simple class builder.

Here's hoping Moose makes it into 5.12 Core (but not likely!)


Comment on Re^2: Using ArrayRef data members in Moose
Re^3: Using ArrayRef data members in Moose
by stvn (Monsignor) on Jul 04, 2008 at 03:32 UTC
    That's when I use Coat;

    Actually the recommended mini-Moose is now Mouse, it was written by and maintained by one of the core Moose contributors and unlike Coat it is commited to stay 100% compat with Moose (it even has a module Squirrel which will choose Moose or Mouse depending on if Moose is already loaded or not). This is of course not to say that Coat is a bad choice, only that the author has decided compat with Moose is not as important to him, so if that is important to you, then use Mouse.

    Here's hoping Moose makes it into 5.12 Core (but not likely!)

    Here is hoping it doesn't!!

    When a module goes into the core it suddenly has a dual-life. There is the (frozen) version that is distributed with the latest version of perl, and then the (living) version that is on CPAN (you now, the one with the bugs fixed and new features). Not until Moose is completely bug free and feature complete will I allow it to get put into core, in other words, it is never going to happen :)

    -stvn

      wrote stvn thus:

      When a module goes into the core it suddenly has a dual-life. There is the (frozen) version that is distributed with the latest version of perl, and then the (living) version that is on CPAN (you now, the one with the bugs fixed and new features).

      Indeed! Would be nice to see a lean core, for if a bug happened to be in only the "core" version, then explicit work is needed to pick up the updated version (from a different path).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-07-14 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (256 votes), past polls