Ideas on type hinting and named parameters

Kevin Smith 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...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150609/2ceb94d4/attachment.html>


More information about the es-discuss mailing list