News for hackers. Stuff that matters.
Re:Portacle – A Portable Common Lisp Development Environment by kazinator on Friday January 06, 2017 @06:27PM (#13341271)
Another consideration/angle is this. Suppose I call a three-arg function with only two args. Why should that curry in the Haskell way? That is just someone's design opinion. Suppose I want that two-arg call to return a function, but not the ordinary curried one. For instance, I might want the function to curry to a transduce kernel. Meaning, I can pass the resulting function to reduce, such that the reduce now performs a mapping through the original function. In other words, this:

  (map (lambda (x) (foo 1 2 x)) list) <--> (reduce (foo 1 2) list)
In mainstream languages that have implicit currying, we're stuck with the one and only currying semantics.

There are no comments on this comment yet.