Claude Pache (2013-07-02T11:21:30.000Z)
* `Date()` and `new Date` give different results;
* It would add complexity (for the programmer) to have constructors defined the ES1-5 way and constructors defined using `class` behave differently;
* Opinions differ on best practices.

—Claude

Le 2 juil. 2013 à 07:09, Domenic Denicola <domenic at domenicdenicola.com> a écrit :

> Given that all non-primitive built-ins behave this way, and that including `if (!(this instanceof ConstructorName)) { return new ConstructorName(...args); }` is a well-established best practice for ES5 code: can we just do this automatically for classes declared with `class`?
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
domenic at domenicdenicola.com (2014-08-20T20:16:32.397Z)
* `Date()` and `new Date` give different results;
* It would add complexity (for the programmer) to have constructors defined the ES1-5 way and constructors defined using `class` behave differently;
* Opinions differ on best practices.