3 ms·
I'm glad he made the correct distinction between partial application and currying. The article is worth it for his helpful explanation of the two alone. Though
by kbd 15y ago
I'm glad he made the correct distinction between partial application and currying. The article is worth it for his helpful explanation of the two alone.
Though, it's slightly off on the initial presentation of currying. Currying is the act of transforming a function that takes multiple arguments into a function that returns a function that takes n-1 arguments, and so on, not an "incremental binding of function arguments".
- Drbble 15y agoI don't see a meaningful difference in the cases in your last paragraph. Seems like an implementation detail. The issue of whether the caller has to explicitly call "partial" seems to be the meaningful distinction.
- deleted 15y ago[deleted]
- wildanimal 15y agoThe original statement could be interpreted in this way: the former operation 'returns a function' and in the latter, it 'bind[s] [...] arguments' - suggesting a form of destructive updating of the original function. But I agree with you that in this context, since both return functions it's an implementation detail.