3 ms·
I think the biggest thing is that most lisps return values for most things. (if a x y) which is composable to (let ((val (if a x y))) ...) as
by orthecreedence 13y ago
I think the biggest thing is that most lisps return values for most things.
(if a x y)
which is composable to
(let ((val (if a x y)))
...)
as opposed to
(let ((val nil))
(if a
(setf val x)
(setf val y))
...)
That said, not everything returns value(s), and there's nothing enforcing immutability. I'd say you can be functional in (most?) lisps if you are careful, but the language family is more geared towards general purpose programming than functional.