3 ms·
"What first struck me when learning Swift was how much play the "map()" and "filter()" functions got on the web [also "flatmap()" but I'm not as excited about t
by jimbokun 11y ago
"What first struck me when learning Swift was how much play the "map()" and "filter()" functions got on the web [also "flatmap()" but I'm not as excited about that one yet because I don't love LISP and it's not 1970]."
Cute. But this article demonstrates Eric Raymond's point:
"LISP is worth learning for a different reason — the profound enlightenment experience you will have when you finally get it."
Much of the history of main stream programming languages is simply a slow progression of adopting the features of Lisp. So in this case, someone who already knew Lisp would not have to learn how to use the functional constructs in Swift fluently and idiomatically, because they would already have experience doing so.
(Yes, I know this does not apply to all programming languages and programming language features, but it's surprising how often it's true! Paul's Graham take on this idea here: http://www.paulgraham.com/diff.html http://www.paulgraham.com/diff.html)