Re:The Failure of Lisp? A Reply To Brandon Werner
by dlweinreb on Saturday September 20, 2008 @08:05PM
(#310139)
It's true that earlier Lisp dialects had trouble. But in Common Lisp, you can do currying just fine. At work (ITA Software), it's part of our standard utility library.
Re:The Failure of Lisp? A Reply To Brandon Werner
by silentbicycle on Saturday September 20, 2008 @11:42AM
(#309927)
Ah, I misread it as that ML "force[s] an inappropriate fundamental data type on everything", not s-expressions.
'(GRAPH-EDGE <source-vertex> <target-vertex>)
whereas in ML you would write
type edge = { source: Vertex.t; target: Vertex.t }
which is not a list, but an entirely different representation. In Common Lisp the representation could of course be a CLOS object or a DEFSTRUCT (I think, my CL-fu is definitely not that good).
As for the composition, lisps are lacking (nice) currying which is one of the basic building blocks when constructing combinator-libraries.