Subject: | Moose Trap: Don't override new? |
I was told on IRC...
<autarch> Schwern: also, you don't want to override new(), that breaks
an optimization that make_immutable() does
<autarch> you could do what you're doing in BUILD instead
<autarch> and you should probably make your class immutable
Seems like this is going to be a very common mistake for Perl 5 users
coming to Moose. Doesn't seem to be documented anywhere obvious.
Perhaps a "common traps" manual would be handy, Moose::Trap? In
particular the common mistakes and misconceptions made when coming from
plain Perl 5 to Moose.