in reply to Re^2: RFR: Inside-out classes - a Class::InsideOut primer
in thread RFR: Inside-out classes - a Class::InsideOut primer
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
-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.
|
---|