4 ms·
Ah, TIL. If we are being pedants. Wikipedia says: > currying is the technique of converting a function that takes multiple arguments into a sequence of functi
by zodiakzz 5y ago
Ah, TIL.
If we are being pedants. Wikipedia says:
> currying is the technique of converting a function that takes multiple arguments into a sequence of functions that each takes a *single argument*.
So the article isn't currying either. It's a hybrid between currying and partial application.
TBH I can't think of a practical case where you'd prefer currying over partial application. Theory/philosophy aside.
- masklinn 5y ago> So the article isn't currying either. It's a hybrid between currying and partial application. Sure. > TBH I can't think of a practical case where you'd prefer currying over partial application. Theory/philosophy aside. For eager-evaluation uncurried language (like javascript) I would also struggle to think of one. For curried languages, it can sometimes be useful to uncurry functions in order to make types match, after which you might have to curry them back into the "normal" form to use them.