4 ms·
Having loved getting to write some Perl 5 here and there I think I know how to write object oriented Perl, but I still have no idea why it needs to be so differ
by jrumbut 9y ago
Having loved getting to write some Perl 5 here and there I think I know how to write object oriented Perl, but I still have no idea why it needs to be so different from the way you would expect it to work (besides political reasons or for it to feel different than other OO languages).
Modern Javascript owes an enormous philosophical debt to perl and Larry Wall, who pioneered the whole "take some nice parts from Lisp but leave the parens" approach to language design.
I'm hopeful that the wonderful ideas from Perl 6 will be adopted into a language people use sooner rather than later. I guess that language could be Perl 6 but I'm doubtful.
- harry8 9y agoMy understanding is that OO wasn't so much designed into perl 5 as bolted on later with a pretty cool and useful hack. This makes writing your first few perl objects a bit awkward. "Bless an array, why? What's that got to do with what I want?" There's better library support that came in after I'd stopped writing much perl, but looks quite clean by comparison. Too late for me, sadly. Still python isn't so bad when you need to script something your colleagues might need to read. It could have been different though and I would have preferred a more Perl flavoured world. Maybe it will come again..? http://search.cpan.org/dist/Moose/lib/Moose/Manual.pod http://search.cpan.org/dist/Moose/lib/Moose/Manual.pod