proposal-bind-operator icon indicating copy to clipboard operation
proposal-bind-operator copied to clipboard

This-Binding Syntax for ECMAScript

Results 18 proposal-bind-operator issues
Sort by recently updated
recently updated
newest added

To better differentiate between "bind and call" and "only bind, but do not call" I would introduce a new `:::` operator beside the `::` one. The `::` would only bind...

Are there any updates on the state of this proposal? I find both the unary and the binary variant to be very useful and esthetic and I would definitely use...

Hello! Lately I was intrigued with the need to use syntax like `(0, expr)` for imports from modules to make sure it does not called on module import as `this`....

I'd like to ask current champions @bterlson @zenparsing @mattpodwysocki whether I can take over this repo and reshape the proposal?

### problem When we read some code like this: ```javascript document.querySelectorAll("div.myClass")::find("p")::html("hahaha"); ``` We will think the `find` and `html` is a identifier like something follow `.` . But it's actually...

Why are you trying to make a simple thing complicated? All we need is sugar to: ``` js // convert this this.service.method.bind(this.service) // into this this.service::method ``` Drop the pipeline...

**Edit:** Here's specifically what I'm proposing: - Keep the function pipelining: `object::func(foo, bar, baz)`, equivalent to `func.call(object, foo, bar, baz)` - Drop the binary binding operator: `object::func`, equivalent to `func.bind(object)`...

Maybe this is out of topic, but still, belongs to bind operator subject. Why don't use arrow functions operation to create methods of classes with bind operators? ``` class Example...

Would the following work or not? Apologies if this has already been answered couldn't find an issue on this. I would assume the answer is an obvious yes. ```js "div.myClass"::find("p")::html("hahaha");...

As mentioned previously in multiple places here previously, the following behavior is highly unintuitive: ```js const obj = {foo() { return this }} function bar() { return this } assert(::obj.foo...