Moose extension MooseX::Struct

[email protected] ("Jarrod Overson")
Newsgroups perl.moose
Message-ID <[email protected]>
Hi All,
 In an effort to steer my coworkers away from the core Class::Struct
and move them to the wonderful world of Moose, I created an almost
drop-in replacement that makes an initial Moose definition a little
bit cleaner and understandable. It's been in use for a bit now and
it's grown to where it could be useful to others, so I recently
uploaded it to CPAN:

http://search.cpan.org/~jsoverson/MooseX-Struct-0.06/lib/MooseX/Struct.pm

It allows you to write code such as :

immutable struct 'Foo' => (
   bar => 'rw',
   baz => 'ArrayRef',
);

Omitting the 'immutable' allows you to extend the object much as you
normally would with Moose.

This will be my first contribution to CPAN, also, so comments would
not be unappreciated.

Thanks
--
Jarrod
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.