prototype focus

Sean Eagan seaneagan1 at gmail.com
Fri Jul 1 07:18:23 PDT 2011


On Fri, Jul 1, 2011 at 8:45 AM, Irakli Gozalishvili <rfobic at gmail.com> wrote:

> why do I have to create constructor function for all classes / subclasses ?

This could be handled by class literals by allowing for default
constructors.  If one doesn't provide a constructor, the following one
could be provided:

constructor(... args) {
  super(... args);
}

Cheers,
Sean Eagan


More information about the es-discuss mailing list