I could like to have a kind of rust edition for JavaScript.<p>You could opt in to an edition by adding a JavaScript directive at the start of the file — like the "use strict" directive. e.g.<p><pre><code> ```js
"use edition2023"
```
</code></pre>
This could enable to remove obsolete features and improve strictness.<p>EDIT: I forgot the "use" before "strict".
I don't know that I buy the would break existing code - sure the language would change but do we actually have stats of uses where we can see people did.. what would they have done?<p>if (typeof varname === "object" && !varname) {
loggingNull("varname");
}<p>it seems far fetched and maybe those people's code should break.<p>I guess it doesn't really affect me though.