Bug#617937: ITP: libmousex-strictconstructor-perl -- Make your object constructors blow up on unknown attributes
Le mercredi 16 mars 2011 22:28:34, vous avez écrit :
> This gives an indication, but I do not think it is explicit enough.
> I would expect that the package description alone tells me what the
> package is about.
ok. Here's the new description that is part of the package waiting in the new
queue:
Description: Mouse extension for making object constructors die on unknown
attributes
Simply loading MouseX::StrictConstructor in your Perl package will make
your constructor "strict". If your constructor is called with an attribute
argument that your class does not declare, then it dies. This is a great
way to catch small typos.
All the best
Dominique
--
http://config-model.wiki.sourceforge.net/ -o- http://search.cpan.org/~ddumont/
http://www.ohloh.net/accounts/ddumont -o- http://ddumont.wordpress.com/
Reply to: