|Just another Perl shrine|
Re^3: RFR: Inside-out classes - a Class::InsideOut primerby xdg (Monsignor)
|on Mar 16, 2007 at 15:02 UTC||Need Help??|
Class::InsideOut does require the developer to consider whether one's attributes are public, private, or read-only
Well, perhaps it's clearer to say that Class::InsideOut emphasizes the decision through a choice of syntax.
Class::InsideOut tries to require as few things as possible:
The public(), private() and readonly() functions just call property() with appropriate options.
I agree that showing it in practice rather than explaining all this is more appropriate for a primer
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.