Ideas on type hinting and named parameters
zenparsing at gmail.com
Tue Jun 9 16:23:50 UTC 2015
> Anyway, I'm curious to know why do you think getters and setters are OK
> and properties are not. I don't see any technical difference, specially
> considering get/set for lazy property computation/assignment through the
> prototype getter anyway.
Syntax for putting properties on the prototype was long-ago rejected
because of footgun potential. Users will naturally tend to think of them
as per-instance, instead of shared, which leads to bugs.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss