Re:Can we stop calling it currying?
by yogthos on Sunday March 22, 2015 @09:57AM
(#9246739)
That's why Clojure calls it "partial" to indicate you're doing partial application http://conj.io/store/v0/org.clojure/clojure/1.7.0-alpha4/clj...
[ Parent
| on HN ]
Re:Can we stop calling it currying?
by dragonwriter on Monday March 23, 2015 @07:42PM
(#9254038)
Partial application isn't currying; partially applying a function f to a first argument x is equivalent to currying f, applying the resulting unary function to x, and uncurrying the function that results from that application.
So, partial application can be defined in terms of currying, application, and uncurrying, but its not the same as currying.
Re:Can we stop calling it currying?
by warbiscuit on Sunday March 22, 2015 @05:10PM
(#9248243)
Was posting to suggest exactly that, it's also what Python calls it (https://docs.python.org/2/library/functools.html#functools.p...), and a "partially evaluted / filled out" function basically encapsulated the whole concept.
Re:Can we stop calling it currying?
by jonlachlan on Monday March 23, 2015 @07:41PM
(#9254036)
Again, your description refers to "partial application", which is different from currying. I think that many people are comfortable with "currying" only because they think it's the same as partial application. The fact that this is incorrect is good reason to revisit the term.
Re:Can we stop calling it currying?
by dragonwriter on Monday March 23, 2015 @07:48PM
(#9254063)
> I think that many people are comfortable with "currying" only because they think it's the same as partial application.
If currying was the same as partial application, I'd say we don't need the name "currying" and can just use "partial application". So I guess you could say that I am comfortable with currying only because I don't think it is the same as partial application.
Re:Can we stop calling it currying?
by jonlachlan on Monday March 23, 2015 @08:17PM
(#9254164)
Good point. It's a bit of a wonder why so many people think of them as equivalent (perhaps they thought currying was a convenient shorthand for partial application). I'm comfortable with a simple campaign to clarify the difference, and I think my suggested terms would be helpful to accomplish that (so rather than replacements, simply informal descriptions of the term).