The Web created the “use strict” to introduce breaking changes. Why not a new “use strict v2”?
Opting into strict for the function body is a micromode. New rules that only affect parameters is not (but I'm generally concerned about refactoring hazards)
-
-
Static checks for early errors aren’t micromodes either, in my book.
-
Turning code with well defined semantics into an error because of a seemingly unrelated refactor (switching from `arguments` to `...args`) is definitely a micromode.
-
Agreed, I’m not talking about what we agreed not to do, rather about destructuring params forbidding dup names, e.g.
-
Yeah, that kind of thing is generally fine.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.