4 ms·
In my experience, currying is problematic in dynamically typed languages. If you accidentally pass less arguments than you should, then you'll only detect the e
by ufo 5y ago
In my experience, currying is problematic in dynamically typed languages. If you accidentally pass less arguments than you should, then you'll only detect the error much later, when you try to use the result and find that it is a partially-applied function instead of whatever you were expecting.
A question for the Javascript experts: is there a way to set a property in the returned function, saying in what line of code it was created? Perhaps something like the __LINE__ macro from C...