In theory, one can use prototype properties to provide default values for instance properties. In practice, that is not often useful, because the constructor normally creates all instance properties right away, assigning default values where necessary. And, with default parameter values in ES6 that is even easier to do.
As mentioned by Andrea in another thread, another argument against non-method prototype properties is that they prevent you from freezing the prototype (because that would make assigning to instance properties impossible). Any other reasons for why they are discouraged? Thanks! Axel -- 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

