3 ms·
Partial application (passing too few arguments to a function) is something that a programmer does. Function currying is something that a programming language d
by tempodox 9y ago
Partial application (passing too few arguments to a function) is something that a programmer does. Function currying is something that a programming language does in response to partial application. It's basically wrapping the partially applied function in another one that expects the missing arguments and then performs the originally intended computation.
- catnaroek 9y agoCurrying is something the programmer has to do when defining a function - well before partial application happens at all! More precisely, the programmer has to choose between: fun foo (x, y) = ... And fun foo x y = ... The language won't make the choice for them.