News for hackers. Stuff that matters.
Re:How JavaScript Works: deep dive into call, apply, and bind by jffry on Saturday July 10, 2021 @08:43AM (#27792986)
They can't be removed from the language, sure, but we can benefit by shunning the bad parts of the language, and using newer additions that are easier to reason about.

When's the last time you considered using a with(x){} block in JS? Would you still use var instead of let or const?

Re:How JavaScript Works: deep dive into call, apply, and bind by megous on Sunday July 11, 2021 @06:55PM (#27805162)
Quite a few years since I used `with` the last time. Not going back to that one.

`call/apply/bind` are normal functions though, not some fancy syntax construct, and `this` is important if you want to play with prototypes/Object.create, which is what you want to do if you found class syntax sugar lacking in features/extensibility/overrideability.