Hacker GitHub

← All repos

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

Mentions per year 12 mentions · busiest year 2015 (3)
20082026
  1. 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
  2. …is not very active any more. [1]: https://www.proposals.es/proposals/Iterator%20helpers [2]: https://github.com/tc39/proposal-bind-operator
  3. 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
  4. …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?
  5. …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
  6. …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…
  7. …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.…
  8. 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
  9. ▲ 107
    ECMAScript bind operator proposal
    story by networked · 2016-12-03 · 46 comments
  10. …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
  11. (var | let | const) $ = ::document.querySelector; with experimental ES7 syntax :D https://github.com/zenparsing/es-function-bind
  12. …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.