tc39/proposal-bind-operator
View on GitHub ↗ ★ 1,752
This-Binding Syntax for ECMAScript
12 mentions on Hacker News by 11 people: 1 story, 11 comments · first 2015-06-12 · latest 2023-01-20
20082026
-
There was also a different proposal that allows objects to be extended: https://github.com/tc39/proposal-bind-operator Personally, I don't use classes much, but sometimes I think free functions are a little too hard to find, so I tend to…
comment by renke1 · 2023-01-20 · in Pipe Operator (|>) For JavaScript -
…is not very active any more. [1]: https://www.proposals.es/proposals/Iterator%20helpers [2]: https://github.com/tc39/proposal-bind-operator
comment by nikeee · 2022-11-08 · in Why would anyone need JavaScript generator functions? -
There is a proposal[0] but I'm afraid it's pretty much dead now. [0] https://github.com/tc39/proposal-bind-operator/
comment by oneshot-a4yukdk · 2020-02-04 · in F# Pipeline Operator in JavaScript with Babel -
…EG: const getFoo = () => this.foo; const bar = { foo: 1 }; console.log(bar::getFoo()); // 1 https://github.com/tc39/proposal-bind-operator
comment by tobyhinloopen · 2019-01-27 · in Future JavaScript: what is still missing? -
…need the bind operator [1] to provide a primitive on top of which the rest can be explained. [1]: https://github.com/tc39/proposal-bind-operator
comment by spion · 2017-11-20 · in When I use classes, when I don’t, what I do instead and why -
…special cases go down to just a couple. Its unfortunate we don't yet have the bind operator https://github.com/tc39/proposal-bind-operator If we had it, the explanation could be made even clearer. You would be able to call free-standing…
comment by spion · 2017-11-19 · in When I use classes, when I don’t, what I do instead and why -
…for an easier way to bind `this` and some discussion about extending that to class methods: https://github.com/tc39/proposal-bind-operator/issues/39 Using arrow functions at the class level would also solve this without adding new syntax.…
comment by supergreg · 2017-11-19 · in When I use classes, when I don’t, what I do instead and why -
The bind operator (::) would allow you to write "virtual methods". https://github.com/tc39/proposal-bind-operator (stage 0)
comment by tomatsu · 2016-12-07 · in Announcing TypeScript 2.1 -
▲ 107
ECMAScript bind operator proposalstory by networked · 2016-12-03 · 46 comments
-
…instead of just any value.) Presumably, at most one of these proposals will make it in :) [1]: https://github.com/zenparsing/es-function-bind
comment by renekooi · 2015-12-06 · in ES7 Proposal: The Pipeline Operator -
(var | let | const) $ = ::document.querySelector; with experimental ES7 syntax :D https://github.com/zenparsing/es-function-bind
comment by takle · 2015-06-15 · in Bling – the $ of jQuery without the jQuery -
…in Trine. The chaining is not a feature of Trine, but the function bind syntax proposal ( https://github.com/zenparsing/es-function-bind ), Trine has merely been designed to work well with this syntax.
comment by quinnirill · 2015-06-12 · in Trine – A utility library for functional programming in JavaScript