News for hackers. Stuff that matters.
Re:Combinator Recipes for Working With Objects in JavaScript by ville on Saturday December 15, 2012 @01:37PM (#4925909)
It is stated that JavaScript doesn't have partial function(al) application. Isn't it available through the built in Function#bind method?
Re:Combinator Recipes for Working With Objects in JavaScript by jrajav on Saturday December 15, 2012 @02:03PM (#4925996)
Function#bind isn't the greatest solution, since it forces you to set 'this' and only allows left-to-right, flat application.

Many people have written partial application libs to make it easier to work with (I even have one of my own on github). A good one is substack's: https://github.com/substack/node-ap

Re:Combinator Recipes for Working With Objects in JavaScript by raganwald on Saturday December 15, 2012 @01:41PM (#4925915)
Yes, and yet, no. Bind binds this as well as arguments from L2R, so you can't bind arguments while allowing apply or call to set the context. You also can't bind arguments leaving a "hole."