Dave, I agree the differences are minor. However, In my mind the differences are valuable if possibly more style based.
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. Second I have an instance creation method that leverages the class creation method. I just noticed that it is not included on the PrePAN synopsis These two changes allow me to do two things. First since all arguments are named arguments they can either be omitted or provided with no code failure. Meaning I can create an anonymous class with the same function as a named class by just omitting the key/value pair for the name. Second, the class function is set up to pass through instance arguments that are composed as a hash without touching them. This makes it possible to bundle the necessary arguments for an instance with the arguments for a completely new class and create the instance without using the following syntax. my $instance = Moose::Meta::Class->create( 'New::Class', superclasses => ['Super::Class'], roles => ['Does::Something'], )->meta->name->new( %args ); I understand that both issues are style based and are not intended to reflect on Moose or its excellent implementation, but I find the previous syntax a bit clunky and it occurs a fair amount in code I am writing now. As a consequence I am looking for an out of the way namespace to place a class I can use to modify the instance implementation syntax to a 'method( %args )' style. Best Regards, Jed On Sun, Oct 7, 2012 at 8:04 PM, Dave Rolsky <auta...@urth.org> wrote: > On Sun, 7 Oct 2012, Jed Lund wrote: > > I have posted a prospectus of code on PrePan @ >> >> http://prepan.org/module/**429En4oFep<http://prepan.org/module/429En4oFep> >> > > How is this any different than what Moose::Meta::Class->create() (and > create_anon_class) provide? > > All your code does is reimplement that, AFAICT. > > > -dave > > /*============================**==============================**== > http://VegGuide.org http://blog.urth.org > Your guide to all that's veg House Absolute(ly Pointless) > ==============================**==============================***/ >