Re:Not Lisp again (2009)
by davexunit on Tuesday May 02, 2017 @01:36PM
(#14248555)
Lisp is not a functional programming language.
[ Parent
| on HN ]
How? Functions are first class in lisp.
Functional programming is but one of the many paradigms that you can use in Lisp, along with imperative, object-oriented, relational, etc. When you say a language is a functional language, you are saying that it is the paradigm supported, which is not the case here.
Re:Not Lisp again (2009)
by concede_pluto on Tuesday May 02, 2017 @04:00PM
(#14250030)
Lisp has lots of mutable types and lots of ways to smuggle them into and out of a procedure. I'd say pure functions are tolerated but not supported.
Still hard to beat for creating domain-specific languages, though, and a carefully designed DSL can rule out nondeterminism and side effects.
A language need not force purity to allow for purely functional programs. Besides, purely functional languages all need a way to cheat to actually do anything useful. Any nontrivial program needs a mix of paradigms.
Re:Not Lisp again (2009)
by crimsonalucard on Tuesday May 02, 2017 @02:52PM
(#14249396)
First class functions do not make a programming language functional.