Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is a proposal for a :: bind operator.

1. a unary :: operator for binding methods to their objects: `foo.then(::console.log)`

2. a binary :: operator for chaining: `x(a)::y(b)` (equivalent to `y.call(x(a), b)`)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: