3 ms·
Didn't most perl5 OOP move to the Moose library, that set a bunch of standard method names and hid all the bless'ing stuff in its internals?
by knome 8y ago
Didn't most perl5 OOP move to the Moose library, that set a bunch of standard method names and hid all the bless'ing stuff in its internals?
- tyingq 8y agoIt didn't move per se. You can use Moose as an abstraction if you want. But Moose is just a pure Perl module using bless at the bottom. Edit: Maybe not pure Perl anymore? Would be VERY surprised if bless wasn't at the bottom though.
- lizmat 8y agoI seem to recall that most of Moose is XS now?
- lizmat 8y agoI recently wrote an article about objects / classes in Perl 5 and Perl 6, which also touches on Moose: https://opensource.com/article/18/11/how-make-perl-more-classy https://opensource.com/article/18/11/how-make-perl-more-clas...
- tyingq 8y agoYour article does a pretty good job of showing what I meant. The Perl 5 example is more verbose, but easy to follow how OO is implemented. Perl 6 hides it. Not arguing Perl 5's approach as better. Just that it makes OO easy to understand for a procedural developer.
- lizmat 8y agoThank you. FWIW, I like to work with things that do what I want, without having to precisely understand how they do it.