Also, standard access to internals gives you a number of mechanisms for compatibility, etc. One of the things that I like about Moose is that I can pass an object off to a TT template and use it as a hashref.
The solution to "enforced privacy" is immutability and functional programming. Perl does pretty well there if you are careful.
In reply to Re^2: Private & Protected Objects
by einhverfr
in thread Private & Protected Objects
by Sixes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |