|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^2: Idea: Moose Mutal Coercionby duelafn (Priest) |
| on Feb 14, 2012 at 15:04 UTC ( #953711=note: print w/ replies, xml ) | Need Help?? |
|
Well, I was going to convert your code into a moose BUILDARGS method, but decided that I think the best approach along this line would be simply lazy-building. Of course, the advantage of the OP's approach is re-usability. The re-usability can be mostly recovered by moving the attributes to a role:
Though, hopefully you intend to use these methods only to provide (semi-sane) defaults when first/last/full are needed but not known - names are too complex for the above to be reliable generally. Good Day,
In Section
Meditations
|
|
||||||||||||||||||||