zenparsing at gmail.com
Tue Jun 17 18:49:35 PDT 2014
>> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss