3 ms·
> I am referring to the call and apply functions which allow the user to set the scope of the functions during the function call. Ah yes, so it is indeed about
by masklinn 15y ago
> I am referring to the call and apply functions which allow the user to set the scope of the functions during the function call.
Ah yes, so it is indeed about `this` and its dynamic scoping.
I can't say I'm much fond of it, I'd rather have correctly bound methods (à la python) and actual, optional dynamic scoping when needed (à la Common Lisp)
> Very true, but I'd really like to know why you would put JS in the same class as Fortran and Cobol.
I don't, I'm just saying being able to do "a lot" with a language does not mean the language is good in and of itself, and Fortran and Cobol are good examples of that: few under 50 will try and defend them (as opposed to PHP, an unmitigated disaster of a language which still finds defenders), and there are fucktons of code written in these languages and still running.