Ideally I would want to declare everything at the attriute-level, e.g.:
Can you do that as well?has foo => (is => "ro", default => { value => "whatever", when => "fal +se" });
I am not so much interested in the feature itself, but it is interesting to see some examples of Moose-metaprogramming at work...
Thanks!
In reply to Re^9: Moose and default values
by morgon
in thread Moose and default values
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |