> > >> SyntaxError. >> >> > We could prevent this behavior by making sure that super(); must be the >> > first statement in a constructor, [...] >> >> That is what I proposed. >> > Sorry for my previous gut reaction. This looks like a good proposal, but it makes a break with the evolutionary design of ES classes. I think sticking to an evolutionary path with classes has played a big part in their success and I think we should stick to that.
Furthermore, when we were hashing out classes, several people (including me I think) tried to suggest ways to maintain the `C() <=> new C()` equivalence established by the built-ins, and it never really took off. I think maybe the reason is that that equivalence isn't very useful.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

