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.
Chaining Accessors (Score:2)
Re:Chaining Accessors (Score:1)
Thanks perfect!
I haven't made up my mind whether accessors that return the object are such a good idea. Say, for example, you have some basic code:
What should make_foo_value return? If it returns $self, then you need to go:
On the other hand, if it returns the value you just set, you go:
What is better? Trying to make these sorts of decisions does my head in :)
Reply to This
Parent