News for hackers. Stuff that matters.
Re:Inheritance versus Composition by hnick on Thursday May 09, 2019 @01:56AM (#19865752)
I'm pretty sure Perl's Native OO has no encapsulation, at least without custom modules or weird wranglings like inside-out objects. It doesn't mean we must peek inside, but the option is there. It is completely functional, but as prone to misuse as the rest of Perl.
Re:Inheritance versus Composition by lizmat on Thursday May 09, 2019 @04:20AM (#19866339)
One should note that in Perl 6, object encapsulation is complete. You can only directly access attributes inside a class, and only through (usually autogenerated) methods outside of it.