Attributes create more complexity again (e.g. extra steps for mod_perl compatibility) -- exactly the kind of thing I'm trying to avoid. If you want that kind of interface, I'd go with Class::Std or Object::InsideOut.
As a side note for anyone following this thread, one advantage of the separate property label is that you can have your lexical hashes follow PBP style guides without affecting the accessor name:
public name => my %name_of;
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re^6: Class::InsideOut 1.01 now with added sugar
by xdg
in thread Class::InsideOut 1.01 now with added sugar
by xdg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |