Skip to content
Sections
>> Trisquel >> Packages >> aramo >> perl >> libmoosex-strictconstructor-perl
etiona  ] [  nabia  ] [  aramo  ]

Package: libmoosex-strictconstructor-perl (0.21-1)

Make your object constructors blow up on unknown attributes

"use MooseX::StrictConstructor" instead of just "use Moose" makes your constructors strict. If your constructor is called with an attribute init argument that your class does not declare, then it calls "Carp::confess()". This is a great way to catch small typos.

Other Packages Related to libmoosex-strictconstructor-perl

  • depends
  • recommends
  • suggests

Download libmoosex-strictconstructor-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 16.8 kB44 kB [list of files]