Echo JS 0.11.0

<~>
orefalo 3911 days ago. link parent 1 point
THIS should have been called THAT, so that people coming from other languages don't get confused. A good language must also mitigate differences and be easy to maintained by mediocre developers.

If THIS was properly implemented, Javascript could have been called Scala. See, in the end it has nothing to do with being functional or not.

Last point, ES6 fixes THIS crap with classes... finally.

Replies

ilyavf 3911 days ago. link 1 point
Why would do you say that ES6 by adding Class definition will "fix THIS crap"? 

You will still need to understand how "this" binding gets resolved depending on the execution context. 

Here is the spec one should use as a first-hand source of information. Its not easy to learn from there but it could give one a sense of real understanding of the keyword "this":

https://people.mozilla.org/~jorendorff/es6-draft.html#sec-this-keyword