Re:Is there any code in Firefox (as of 2020) that comes from...
by pwdisswordfish2 on Saturday March 28, 2020 @09:50AM
(#22711117)
‘this’ is not in any sense dynamically scoped. It's just a function parameter, assigned implicitly based on the context of the call.
[ Parent
| on HN ]
Re:Is there any code in Firefox (as of 2020) that comes from...
by DonHopkins on Sunday March 29, 2020 @09:03PM
(#22724289)
If that's a fact, then please tweet to Brendan Eich that he was wrong when he referred to "dynamic this binding" as the rationale for adding fat arrow functions to JavaScript in his fat arrow proposal, and take your argument up with him, not me:
>"dynamic this binding is an oft-fired footgun" -Brendan Eich
Re:Is there any code in Firefox (as of 2020) that comes from...
by BrendanEich on Tuesday March 31, 2020 @03:07AM
(#22735484)
I wrote dynamic binding, that's not the same as dynamic scope.