4 ms·
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
by jffry 5y ago
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?
- megous 5y agoQuite 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.