News for hackers. Stuff that matters.
Re:Currying in JavaScript by tobyhinloopen on Monday July 20, 2015 @01:14AM (#9914110)
For every use case this might be applied, .bind -a built-in function- is superior.
Re:Currying in JavaScript by josteink on Monday July 20, 2015 @03:36AM (#9914500)
I actually had to look this up, because I didn't know about it, and yes I agree.

MDN documentation contains some very illustrative examples of its use:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:Currying in JavaScript by Nemcue on Monday July 20, 2015 @12:47PM (#9917252)
What about a function that you want to pass around and have other actors give it arguments until it executes?

Can't really do that with .bind without executing it.