Ideally indexed integer properties would generally be limited to the receiver, like it is the case for TypedArrays. But I'm pretty sure it'd break stuff. Someone will rely on this odd Array behavior.
cc @BrendanEich @littledan @bterlson
-
-
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.)
-
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.