2
Best practices建議namespace::autoclean
和make_immutable
駝鹿,避免明確的樣板
package Person;
use Moose;
use namespace::autoclean;
# extends, roles, attributes, etc.
# methods
__PACKAGE__->meta->make_immutable;
1;
MooseX::Declare
自動處理這一點,但它已被棄用,因此 什麼值得推薦的替代(S)呢?
嗯,有https://metacpan.org/pod/Moops,但我認爲你只需要它需要的樣板部分,對吧? – simbabque