News for hackers. Stuff that matters.
Re:How JavaScript Works: deep dive into call, apply, and bind by normac2 on Friday July 09, 2021 @06:02PM (#27789024)
> Incidentally, we should also discard `this`, unless directly inside a class method.

When you say it has to be "directly," do you mean we should never use arrow functions (or use them only for looks)? Since the purpose of those is to add "this" support to inner functions?

Re:How JavaScript Works: deep dive into call, apply, and bind by bluepnume on Friday July 09, 2021 @07:15PM (#27789570)
Sorry, yeah, I did allow for closures inside class methods with that statement. That's fine by me.