3 ms·
"it could be argued that Perl 5's lack of built-in OO" That's interesting to me. I consider bless() and package namespaces to be "built in OO." Is there some
by tyingq 8y ago
"it could be argued that Perl 5's lack of built-in OO"
That's interesting to me. I consider bless() and package namespaces to be "built in OO."
Is there some OO concept that combo doesn't provide?
Also, for "Parsing a 115Mb log file for lines containing a 15-character word" ? Wouldn't that just be:
perl -ne 'print if /\b\w{15}\b/'
I'm surprised that's not faster.
- cutler 8y agoI was trying to create a level playing field as PHP and Python don't lend themselves to one-liners as well as Ruby and Perl. If blessing a hashref is real OO why has so much energy been expended on Moose and its offspring? Before I left, back in 2013, there was also much gnashing of teeth over whether Perl needed a MOP so I don't think everyone agreed that bless() is enough.
- tyingq 8y ago"If blessing a hashref is real OO why has so much energy been expended on Moose and its offspring?" That's a good question. It's always mystified me. A little boilerplate doesn't bother me. As far as I can tell, it's because people didn't like writing the constructor boilerplate and getters/setters. Maybe for the "isa" pretend types?