39 ms·
* function-local scoping rules and the "this" keyword.* It's showing that you've been burned by these magical creatures. It takes time and effort to get used t
by timepiece 12y ago
* function-local scoping rules and the "this" keyword.*
It's showing that you've been burned by these magical creatures. It takes time and effort to get used to mastering these awkward concepts
- discreteevent 12y ago"It takes time and effort to master" - Yes, but as we know this is accidental rather than essential.
- timepiece 12y agoHow's this accidental and not essential? Actually, if you don't know how ((this)) works in different context, you can't call yourself a good js developer.
- striking 12y agoNot really. He's just using that to note that JS is not really a Lispy language because of this. My choice for "why JS != Lisp" is how the Array functions return whatever you passed to them and not the array itself, so you can't write single-expression multi-modifications to an array. Unless you use the hellish Array.splice method. Which I'd argue is even worse.