4 ms·
No I mean a REAL block scoped language! JS is cool but these are just bolted on features. Why does a function I pass into an Ajax query need a call statement?
by nickthemagicman 10y ago
No I mean a REAL block scoped language! JS is cool but these are just bolted on features.
Why does a function I pass into an Ajax query need a call statement?
Why does 'this' have so many interpretations depending on its context?
Other languages approach these in simpler ways.
Functions inherit the scope in which they are executed and
'this' applies to its parent object.
Also, whats up with nested asynchronous statements?
I know ES6 and 7 are working on it but new languages would be ideal with new takes on solving some of the tough parts of web development.