Re:A Case Against Using CoffeeScript
by jashkenas on Wednesday December 14, 2011 @07:46AM
(#3351592)
Absolutely. I don't mean that dynamic "this" is required by prototypal inheritance in general -- I mean that it's required because of JavaScript's particular implementation of prototypes, where they're exposed to you as a value, but there's no syntax where the language can tell that you're in the process of building one out.
* A function always captures its outer `this`
* The getter of a prototype function (`thing.method`) always returns a binded function (where `this` == `thing`).