Personal tools
Skip to content. | Skip to navigation
Moose, a powerful metaobject-fueled extension of the Perl 5 object system, is wonderful. (For more information on Moose, please see 'perldoc Moose' after installing the perl-Moose package.) Unfortunately, it's a little slow. Though significant progress has been made over the years, the compile time penalty is a non-starter for some applications. Mouse aims to alleviate this by providing a subset of Moose's functionality, faster.
This is a Mouse role that provides an alternate constructor for creating objects using parameters passed in from the command line.
While the Mouse manpage attributes provide a way to name your accessors, readers, writers, clearers and predicates, MouseX::NativeTraits provides commonly used attribute helper methods for more specific types of data. As seen in the the /SYNOPSIS manpage, you specify the data structure via the 'traits' parameter. These traits will be loaded automatically, so you need not load MouseX::NativeTraits explicitly. This extension is compatible with Moose native traits, although it is not a part of Mouse core.
Organize your Mouse types; much as MooseX::Types does for your Moose types. For more information, please see the MooseX::Types manpage. This library was split off from Mouse as of Mouse 0.15.