Which proves that Perl is a continuously evolving language, well-built and robust and able to accomodate new techniques. QED - the defence rests its case!
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] |
later stage?
Perl 5 has always had support for object orientation, and unlike Python I can choose how to use OO, perl 6 style, cdbi style, explicitly, implicitly, scary-magic ways, or c++ style.
Also, unlike Python I don't have to upgrade the entire compiler, core libraries, etc to install newer alternatives and libraries.
I can't remember the last time, or if I have ever needed to upgrade Perl itself to use a perl library or application - contrast this to installing any perl library or application - every time I have had to update python to a newer version, faff about with library paths and have a miserable time
Finally - in what way is Python a winning competitor?
It sold more books to newbies and dabblers this week/month - woo! How about having a tiny fraction of Perl's support, user groups, CPAN, job market, install base, documentation, ORM functionality, etc.
| [reply] |
Python allows multiple ways of doing OO. It's just that there's a default way that's preferable, so pretty much noone needs to roll their own variant, although the techniques get used elsewhere. You'll see the same thing with Perl 6 (see Apocalypse 12, etc) -- the default OO style will be good enough that only a handful of powerusers (and perhaps some dinosaurs ;-) will want/need anything different.
Large quantities of Python code hidden by readmore tag for the benefit of the uninterested:
| [reply] [d/l] |