Re:Perl 7 is going to be Perl 5.32, mostly
by jes5199 on Wednesday June 24, 2020 @03:38PM
(#23632870)
it looks to me like HOP is mostly teaching traditional LISP concepts. I could write those same functions in Javascript, and they'd be more readable
[ Parent
| on HN ]
Re:Perl 7 is going to be Perl 5.32, mostly
by snapdangle on Thursday June 25, 2020 @03:55AM
(#23637999)
With which JavaScript version? At the time HOP was written I remember JavaScript still doing all it's for loops in C-style and there was certainly no arrow syntax to make anonymous JS functions manageable.
There were also no functional methods available, as related by the restriction to C-style for loops. (Array Iteration methods didn't appear in the spec until 2009, so I don't see how you could have map or select or anything else functional).