News for hackers. Stuff that matters.
Re:Currying in JavaScript by bpicolo on Sunday July 19, 2015 @08:16PM (#9913392)
Why did you think you needed it in the case where you had a function that didn't need parameters? That sort of relinquishes the point of currying. (Should just be passing the function itself)
Re:Currying in JavaScript by Zalastax on Monday July 20, 2015 @02:11AM (#9914253)
I had a function taking parameters and wanted a function without parameters. Using this style the function would be called immediately when all parameters are supplied, instead of in the callback as I intended.
Re:Currying in JavaScript by bpicolo on Monday July 20, 2015 @01:05PM (#9917371)
Ahh, I see what you meant. That should work with a correct currying implementation for sure