NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
lvalue accessors (Score:1)
has 'count' => (is=>'rw', isa=>'Int');
$thing->count++; # fails!
$thing->count($thing->count + 1); # ugly!
Are lvalue accessors considered harmful, or would this make a good Moose::Policy?
Re:lvalue accessors (Score:2)
-Dom
Reply to This
Parent
Re: (Score:1)
Unless, of course, you return a tied value…
Somehow, it feels like this discussion has already happened a couple times before…
Re: (Score:2)
-Dom