2 ms·
> Javascript's => doesn't bind this though I think we're getting our wires crossed. Both Javascript and CoffeeScript have (more or less, for the common use cas
by madeofpalk 9y ago
> Javascript's => doesn't bind this though
I think we're getting our wires crossed. Both Javascript and CoffeeScript have (more or less, for the common use cases) the same `this` behaviour for =>. It preserves the `this` value from the context.
- kbenson 9y agoYes, that's what was explained in the sibling. There's a lot of confusion on what "binds this" can mean, and while I thought you might have been misinterpreting me, I may have been misinterpreting you. I was using the terminology that MDN uses in reference to the function arrow, but in the context of this question, some additional elaboration might have been useful to distinguish exactly what "this" is when it's bound (the calling environment, or the current subject being called on as is often the case).