Reputation: 50647
Best practices recommends namespace::autoclean
and make_immutable
package Person;
use Moose;
use namespace::autoclean;
# extends, roles, attributes, etc.
# methods
__PACKAGE__->meta->make_immutable;
1;
MooseX::Declare
automatically handles this but it is deprecated, so
what should be recommended alternative(s) to it?
Upvotes: 2
Views: 70
Reputation: 69264
The MooseX::Declare documentation says:
If you want to use declarative syntax in new code, please for the love of kittens get yourself a recent perl and look at Moops instead.
Upvotes: 2