On Tue May 24 03:27:16 2011, BOBTFISH wrote:
Show quoted text> Thanks for the quick response!
>
> > After a closer look, it seems the existance of CRA is warranted. I have
> > updated the Pod to explain differences and use cases in 0.03.
>
> I'm sorry to be a pain in the ass, but this really doesn't explain it
to me.
Show quoted text>
No pain at all.
Show quoted text> You say:
>
> Use C<MooseX::Role::ConstructorRoleApplication> if
> you're a fan of L<Test::More>'s C<new_ok> or for other reasons require a
> single call to C<new> rather than a chain of calls (as would be necessary
> with C<MooseX::Traits>). Otherwise, use C<MooseX::Traits>.
>
> But MooseX::Traits provides a ->new_with_traits method which internally
> calls ->with, then ->new on the result.. Isn't that the functionality
> you are noting as different?
Good point. Further clarification is needed. The (sole) advantage,
then, is that you can use it with code (other modules, e.g. Test::More)
that calls ->new on a given package. I can not see any way that you
could use new_ok (as an example I am familiar with; there may be
others) with MooseX::Traits.
Then again, I could be completely blind to an obvious solution, in
which case I welcome further enlightenment.