Russell, I looked at the other thread more carefully and now understand
what you're saying. Can't we use a bound |this| function for all these
cases?
needsCallback(x => foo.bar(x));
needsCallback(x => this.bar(x));
// Suppose for a moment that -> also binds |this|
needsCallback((x, y) -> {
if (x) this.doX(x);
else this.doY(y);
});
It seems that with bound |this| functions, the need to explicitly bind
|this| tends to fall away.
kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss