3 ms·
If you prevent builtin overrides now, you'll break the API. We should start discouraging it, as Mozilla does in its MDN. Maybe some deprecationwarning is a good
by alanfranzoni 8y ago
If you prevent builtin overrides now, you'll break the API. We should start discouraging it, as Mozilla does in its MDN. Maybe some deprecationwarning is a good point to start with.
By the way, Javascript was designed in two weeks. I doubt a lot of thought went into such specific details. And the fact that the language doesn't prevent it doesn't make it a good idea - otherwise I'd claim that UB in C is a good idea.
- kd5bjo 8y agoI never claimed it was a good feature, only that the language maintainers should either support code written with it or formally remove it instead of letting it rot with subtle breakage.