@@new

Domenic Denicola domenic at domenicdenicola.com
Tue Jun 17 17:08:12 PDT 2014


From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Brendan Eich

> See Allen's latest followup on this -- is it a static error to have both constructor and the static [Symbol.new]() method?

IMO it shouldn't be, because it'd be weird to get an error for `constructor` + `static [Symbol.new]()`, but to not get an error for `constructor` + `static [Symbol["n" + "ew"]]()` and similar.

Another way of guiding the decision: I don't quite recall where the spec landed `{ x: 1, ["x"]: 2 }`, but we should probably be consistent with that.



More information about the es-discuss mailing list