On Mon, 8 Oct 2012, Jed Lund wrote:

I wrap two changes around Moose::Meta::Class->create in my proposal.  I
accept named hash value pairs for everything including a new package name
where ->class() expects the new name as the first argument.

Actually, Moose already accepts key/value pairs for this method, but this is documented (this thing with multiple calling styles is something I really hate in the Moose core).

Most (but not all) methods of the ->method( $name, %args ) style also work with ->method( name => $name, %args ). Substitute the "name" key for "package" or whatever is appropriate.

Anyway, calling this MooseX::Util::ClassBuilder seems kind of weird since Moose already has plenty of class building support.

It's more like MooseX::ShortCut::BuildClass or something.


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/

Reply via email to