[html-formfu] moose?

Daisuke Maki daisuke at endeworks.jp
Thu Mar 5 15:22:38 GMT 2009


Carl Franks wrote:
> 2009/3/5 Daisuke Maki <daisuke at endeworks.jp>:
>> Just a thought:
>>
>> Would you be interested in porting HTML::FormFu to be Moose based?
>> I may take up on it.
> 
> My primary interest in moosifying HTML-FormFu would be to use Roles to
> be able to get rid of the multiple inheritance that's going on with
> some of the elements. And hopefully cleanup some of the massive
> importing from ObjectUtil.

yeah, that's the idea. no offense, but ObjectUtil needs to go.

> If you want to make a 'moose' branch in svn, please do - but the main
> thing I'll be looking for is a nice use of Roles to cleanup the
> internals, not just convert them to a different class-builder.
> And if the performance hit is more than a couple percent, we may have
> to delay merging it back to trunk, until Moose gets yet faster.

Moose's accessors are not slow.
Moose's constructor, however, are (comparing to bless and the like) 
pretty slow. I don't think that'll change soon.

If we stay clear of any Class::MOP munging, we can leverage the faster 
Mouse.pm through Any::Moose, though.

--d



More information about the HTML-FormFu mailing list