in reply to Perl functional programming system
Hello bagyi, and welcome to the Monastery!
I don’t know of any single, integrated functional system, but contains many modules supplying functional programming features. Here are some:
Lazy evaluation:
Infinite lists:
List comprehensions:
Folds:
Pattern matching:
Currying:
The presence of so many CPAN modules implementing functional programming features in Perl is hardly surprising, given Mark Jason Dominus’s observation in the Preface to Higher-Order Perl:
Around 1993 I started reading books about Lisp, and I discovered something important: Perl is much more like Lisp than it is like C. If you pick up a good book about Lisp, there will be a section that describes Lisp’s good features. For example, the book Paradigms of Artificial Intelligence Programming, by Peter Norvig, includes a section titled What Makes Lisp Different? that describes seven features of Lisp. Perl shares six of these features; C shares none of them. These are big, important features, features like first-class functions, dynamic access to the symbol table, and automatic storage management.
(BTW, just out of curiosity: can someone please enumerate these seven features, and identify the one which is missing from Perl? I’ve often wondered.)
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl functional programming system
by BrowserUk (Patriarch) on Sep 11, 2015 at 17:08 UTC | |
|
Re^2: Perl functional programming system
by bagyi (Acolyte) on Sep 11, 2015 at 17:24 UTC | |
by AnomalousMonk (Archbishop) on Sep 11, 2015 at 19:04 UTC | |
by BrowserUk (Patriarch) on Sep 11, 2015 at 21:21 UTC | |
by Your Mother (Archbishop) on Sep 11, 2015 at 20:30 UTC |