I've programmed in Perl but I'm no Perl-programmer notwithstanding.
Some more or less obvious reasons I see...
Abstraction of diverse Unix utilities' interfaces.
no other language comes close in conciseness when it comes to
text processing and interacting with the OS (filesystem, pipes,..)
.. i could imagine e.g. a library for a language getting there.
Especially a language that is particularly versatile and adaptable to defining DSLs.
But for system automation tasks in a Posix OS, when you want to go above
the level of a simple shell script and use complex data structures, Perl
is the only language that fills that gap, any other language is
oververbose (lacks conciseness).
On Tue, 16 Apr 2024 20:47:47 +0000, Javier wrote:
But for system automation tasks in a Posix OS, when you want to go above
the level of a simple shell script and use complex data structures, Perl
is the only language that fills that gap, any other language is
oververbose (lacks conciseness).
Still some limitations in its data structures, though.
I see Perl 5.38 has
added an “experimental” class feature, but it doesn’t do multiple inheritance or metaclasses.
Also I’m not sure if classes are first-class--
objects or not.
Perl has had support for object-oriented programming (with multiple inheritance) for many years -- too many for me to remember.
On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
Perl has had support for object-oriented programming (with multiple
inheritance) for many years -- too many for me to remember.
Then why this new “class” thing in 5.38?
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
Perl has had support for object-oriented programming (with multiple
inheritance) for many years -- too many for me to remember.
Then why this new “class” thing in 5.38?
It's explained reasonably well at the top of the "perldoc perlclass" documentation in Perl 5.38:
On Wed, 17 Apr 2024 16:59:06 -0700, Keith Thompson wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
Perl has had support for object-oriented programming (with multiple
inheritance) for many years -- too many for me to remember.
Then why this new “class” thing in 5.38?
It's explained reasonably well at the top of the "perldoc perlclass"
documentation in Perl 5.38:
It says there is already supposed to be a mechanism for this, it doesn’t explain why that isn’t good enough.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (1 / 9) |
Uptime: | 75:50:22 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,530 |