in reply to Re: Perl's functional features compared with Ruby
in thread Perl's functional features compared with Ruby
I think here you are falling into a definition trap!
You are showing a Perl list assignment...
But IMHO in LISP-context list mostly means linked list, Perl doesn't support this datatype cause most features can be efficiently mimicked with it's arrays (push, pop, ...).
You may remember that MJD simulated linked lists in his book with chained arrays of two element [$value,$a_ref] where $a_ref always pointing to the next chain link.
One advantage of linked lists over arrays come when splitting them for concurrent processing.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl's functional features compared with Ruby
by davido (Cardinal) on Jan 17, 2014 at 17:50 UTC |