News for hackers. Stuff that matters.
Re:Currying in JavaScript by dllthomas on Monday July 20, 2015 @01:50AM (#9914206)
While I've not messed with currying in JS, I can see a difference still.

If you have an uncurried function for which you have not supplied sufficient arguments, and it is eagerly evaluated, you more likely see below the call site an error in the function where an expected value is undefined. If the function is curried, the meat of the function remains unevaluated, and so is sure to give you back a value that isn't the one you want. So it does seem like moving to currying in JS is likely to sometimes increase error-to-symptom distance.

There are no comments on this comment yet.