by Zekio · 10y ago · 0 comments
The big problem with Perl is it requires discipline to prevent creating a mess for your team or eventual successor.
All three languages implement the same programming paradigm and neither of them enforce (or even suggests) any structure whatsoever, so you easily end up with the same mess/spaghetti, no matter the language.
Of course Perl adds some idioms of its own on top of it, but (a) not that many as most people like to attribute to Perl, (b) most of the idioms are syntax sugar, and (c) most of the mess comes from program structure, not from superficial things like syntax.
I'm a very competent oo perl developer. I recently wrote a complex large platform in Perl5. It's simply not good enough.
In addition cpan is like walking the dungeons of moria. amazing relics of complexity frozen in time.
To clarify for readers who might not know...
* Perl 5 (the language this comment appears to focus on) and Perl 6 (the language the OP is about) are different languages in the same family, like Common Lisp and Clojure.
* Perl 6 OO is syntactically and semantically elegant. "In using Perl 6, one of the things that constantly floors me is how elegant objects are..." [1].
* Perl 6, which has this elegant OO built in, outperforms Perl 5 + Moose for some things and trails it for others.
[1] https://www.reddit.com/r/perl6/comments/4ud7vc/a_python_guy_...
That said, both Perls are nice languages. Personally I prefer Perl 5 slightly, but both are fun to use, if confusing at first. (Perl, especially Perl 5, seems extremely arbitrary and nonsensical until you “get it”.)