3 ms·
Thank you for the very thorough explanation. I was under the impression that lisp was the mother of all functional languages, so I was surprised not to see it
by wodenokoto 11y ago
Thank you for the very thorough explanation.
I was under the impression that lisp was the mother of all functional languages, so I was surprised not to see it in your comment.
- nv-vn 11y agoInterestingly, Lisp tends to be more closely related to modern imperative or OOP languages than modern FP languages most of the time (although this is very much a matter of dialect, as Clojure and Scheme code tend to resemble FP much more than CL and Elisp code do). Lisp had some ideas influential to FP that also made their way into other types of programming (garbage collection, closures, etc.), but things which are considered a modern necessity for functional programming are not present in most dialects of Lisp (like immutability of data, at least by default, currying, etc.). In fact, most Lisp dialects don't even have first-class functions (in the sense that variables and functions are stored in totally different namespaces), which even languages like C# support. So to call Lisp 'functional' is a bit of a stretch, despite the large divides between different dialects and the multi-paradigm abilities of those languages, but that's not to say that it wasn't hugely instrumental in the onset of functional programming.
- js8 11y agoI think another way to look at it is that Lisp took untyped lambda calculus and turned it into practical programming language, although in an opinionated way that was necessary at the time for performance reasons. However, modern FP languages always start from some form of typed lambda calculus, because it has more desirable properties.
- noelwelsh 11y agonv-vn has given a good explanation. When I said "[FP] started in the 50s or the 70s (depending on where you draw the line)" I was implicitly referring to Lisp (1958) and to Scheme and ML (1970s). Although Scheme does not have a static type system it is culturally a functional programming language and has had a large influence on the field.