tc39 / proposal-bind-operator

This-Binding Syntax for ECMAScript
1.74k stars 30 forks source link

binding with parameters #22

Closed felixakiragreen closed 8 years ago

felixakiragreen commented 9 years ago

I read through all the issues, but I'm not sure if they answer my question (I think this one is related https://github.com/zenparsing/es-function-bind/issues/15)

I’m binding ::this.onPressRow so it becomes this.onPressRow.bind(this)

If I wanted this.onPressRow.bind(this, true) how would I format that using ::?

RangerMauve commented 9 years ago

What you want are partially applied parameters which is still not entirely formalized

zenparsing commented 8 years ago

This proposal doesn't cover partially applied parameters.