> Over the last couple years we have explored a lot of variations of how to
> approach this problem. Most of them are captured on the wiki:
>
> http://wiki.ecmascript.org/doku.php?id=strawman:obj_initialiser_constructors
> http://wiki.ecmascript.org/doku.php?id=strawman:obj_initialiser_class_abstraction&rev=1299955398
>
> http://wiki.ecmascript.org/doku.php?id=strawman:obj_initialiser_class_abstraction
>
>
> (and other intermediate versions of these and other pages)
Thanks. Note that my idea is more about defining a callable object using object
literal syntax. Conceivably, even the following variation could work:
const className = superClass <| {
(arg1, arg2): {
//constructor body
super(/*arguments to super constructor*/);
this.{
// per instance property definitions
};
},
prototype: {
// methods
}
// class (ie, constructor) properties
};
--
Dr. Axel Rauschmayer
[email protected]
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss