Package Info

perl-MooX-StrictConstructor


Make your Moo-based object constructors blow up on unknown attributes


Development/Libraries/Perl

Simply loading this module makes your constructors "strict". If your constructor is called with an attribute init argument that your class does not declare, then it dies. This is a great way to catch small typos.

Your application can use Carp::Always to generate stack traces on 'die'. Previously all exceptions contained traces, but this could potentially leak sensitive information, e.g.

My::Sensitive::Class->new( password => $sensitive, extra_value => 'foo' );

License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/MooX-StrictConstructor

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.011-bp155.1.4 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooX-StrictConstructor