Herby Vojčík <[email protected]> wrote: > I just don't understand why you use class keyword here. This will work > without any changes, as-is, with plain function keyword. After all, you just > augment a constructor definition.
The body of this kind of function is different, in that it can define instance properties and prototype methods. It is valuable to distinguish this syntactically, but also valuable to align with expectations that developers currently have for using functions as constructors. Luke _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

