I think this proposal has one fatal flaw and that was what brought it
down the last time we had a proposal which used the same concepts.
Given:

class C(x) {
  public method() {
    return x;
  }
}

It seems like the arguments to the constructor are in scope for the
entire class body when they really aren't. The above would raise an
error that "x is undefined".


I also have some minor issues. The most notable one is evident in the
example used:

 class SkinnedMesh(geometry, materials) extends THREE.Mesh(geometry,
materials) { ... }

What comes after extends is an AssignmentExpression that is called
when the class is created, not parameters that are passed to the super
class. This even confused you so I'm sure it will lead to endless
confusions to less experience programmers.

-- 
erik
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to