7 ms·
> does it not make sense to just remove it from the language completely? The way syntax is "removed from the language" in JS is by introducing commonly-used li
by alangpierce 8y ago
> does it not make sense to just remove it from the language completely?
The way syntax is "removed from the language" in JS is by introducing commonly-used lint rules that disallow them, and that has already happened with `==`: https://eslint.org/docs/rules/eqeqeq https://eslint.org/docs/rules/eqeqeq . As long as the community makes it so a standard project setup has a linter with good defaults, `==` can effectively be removed from JavaScript without having to break nearly every website in existence (which is what would happen if browsers decided to start crashing on `==`).