2 ms·
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 de
by kazinator 10y ago
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.