I do prefer the first option you mention. Now, I don't think a bound function is exotic anymore. When the class keyword was first introduced in ES6 a lot of people found that .bind helped them keep the methods behavior consistent. Maybe they don't know they can use it to achieve partial application but they know .bind exists.
I actually wrote something about partial application a while ago, here is the link.
I do prefer the first option you mention. Now, I don't think a bound function is exotic anymore. When the
class
keyword was first introduced in ES6 a lot of people found that.bind
helped them keep the methods behavior consistent. Maybe they don't know they can use it to achieve partial application but they know.bind
exists.I actually wrote something about partial application a while ago, here is the link.
exotic as in: ecma-international.org/ecma-262/#s...
Today I learned.