APM: Moose

tmcd at panix.com tmcd at panix.com
Thu Jan 22 19:48:47 PST 2009


On Thu, 22 Jan 2009, Dwight Brown <stainles at bga.com> wrote:
>
> On Jan 22, 2009, at 9:37 AM, Jim Lacey wrote:
>
>       More information on Moose
>       http://www.iinteractive.com/moose/
>
>
> <accent="Boris">
>
> What about squirrel?
>
> </accent>
>
> ==Dwight
> (Look, somebody had to do it.)

Somebody already did it, to go with Moose ... or Mouse.

<http://search.cpan.org/~sartak/Mouse-0.14/lib/Squirrel.pm>:

    NAME

    Squirrel - Use Mouse, unless Moose is already loaded.

    SYNOPSIS

        use Squirrel;

        has goggles => (
            is => "rw",
        );

    DESCRIPTION

    Moose and Squirrel are TEH BEST FRENDS, but if Moose isn't there
    Squirrel will hang out with Mouse as well.

    When your own code doesn't actually care whether or not you use
    Moose or Mouse you can use either, and let your users decide for
    you.

    This lets you run with minimal dependencies and have a faster
    startup, but if Moose is already in use you get all the benefits
    of using that (transformability, introspection, more opportunities
    for code reuse, etc).

-- 
Tim McDaniel; Reply-To: tmcd at panix.com


More information about the Austin mailing list