3 ms·
> Python would not normally be classified as functional btw. For that matter, Common Lisp isn't a functional language by the modern definition either.
by thayne 7y ago
> Python would not normally be classified as functional btw.
For that matter, Common Lisp isn't a functional language by the modern definition either.
- flavio81 7y agoPython doesn't really have anonymous functions (unless they are 1-line functions, which, in python, means they can't do much.) This pretty much disqualifies it as a functional programming language. Additionally, Guido and the community in general discourage functional programming. While the Common Lisp community already has a lot of libraries for FP, like FSET and others.
- thayne 7y agoSure. CL certainly supports a functional programming style, and there are some good libraries designed for this, and it certainly lends itself more to functional programming than python. But CL isn't a functional programming language the way haskell, or even other lisps like scheme and clojure, are. CL is really a multi-paradigm language. You can use it for FP, or OOP, or straight imperative, and probably some other less-mainstream paradigm. It's up to you.