No. The bind operator (spec proposal) comes in two flavours:
Method extraction
::obj.method ≡ obj.method.bind(obj)
"virtual method" calls
obj::function ≡ function.bind(obj)
obj::function(…) ≡ function.call(obj, …)
Neither of them feature partial application. For what you want, you should use an arrow function:
(...args) => this.handleStuff('stuff', ...args) ≡ this.handleStuff.bind(this, 'stuff')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With