News for hackers. Stuff that matters.
Re:Null is an Object in JavaScript by conaclos on Wednesday February 08, 2023 @06:53AM (#34706903)
What I propose is introducing breaking changes via editions.

For instance, we could freeze class prototypes making impossible to dynamically replace a method or adding a method to it.

This what "use strict" did by forbidding `with` statements for example.

Re:Null is an Object in JavaScript by k__ on Wednesday February 08, 2023 @07:03AM (#34706963)
You never break user space.
Re:Null is an Object in JavaScript by Thiez on Wednesday February 08, 2023 @07:08AM (#34706995)
Only a Sith deals in absolutes. Presumably that is why proposed mechanism requires the user to explicitly opt-in, just like with `"use strict";`.
Re:Null is an Object in JavaScript by bazoom42 on Wednesday February 08, 2023 @11:31AM (#34710476)
Browsers still have to support the older editions for backwards compatibility, so each new edition increase complexity.