The other subtlety is that I do not believe we should tie behavioral changes to fine grained features (eg some people argued using new features like rest-args should opt into strict; I argued against).
-
-
Replying to @littlecalculist @RReverser and
Right; Andreas Rossberg called those "micro-modes". They syntactically extended from the new syntax to the left as well as right!
1 reply 0 retweets 0 likes -
Replying to @BrendanEich @littlecalculist and
I thought I remembered Andreas strongly being in favor of as much ES6 as possible through fine grained syntactic opt in.
1 reply 0 retweets 1 like -
Replying to @wycats @littlecalculist and
No. Find "In my humble opinion" in https://esdiscuss.org/topic/excluding-features-from-sloppy-mode#content-109 …. Andreas wanted new syntax only in strict, or else in sloppy w/o implicit "micro-mode" strict (1JS).
1 reply 0 retweets 1 like -
Replying to @BrendanEich @littlecalculist and
Who was the micromode champion. I remember having to argue somewhat forcefully against them.
1 reply 0 retweets 1 like -
Replying to @wycats @littlecalculist and
Topic is complex: supporting new syntax in sloppy mode begs questions, e.g. are duplicate formals allowed if you use rest or destructuring? Is an early error against dups a micromode? (No.)
1 reply 0 retweets 1 like -
Replying to @BrendanEich @littlecalculist and
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)
1 reply 0 retweets 0 likes -
Replying to @wycats @littlecalculist and
Static checks for early errors aren’t micromodes either, in my book.
1 reply 0 retweets 1 like -
Replying to @BrendanEich @littlecalculist and
Turning code with well defined semantics into an error because of a seemingly unrelated refactor (switching from `arguments` to `...args`) is definitely a micromode.
1 reply 0 retweets 0 likes -
Replying to @wycats @littlecalculist and
Agreed, I’m not talking about what we agreed not to do, rather about destructuring params forbidding dup names, e.g.
1 reply 0 retweets 1 like
Yeah, that kind of thing is generally fine.
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.