ES accessor usage guidelines (Was: Map/Set.prototype.size)

Erik Arvidsson erik.arvidsson at gmail.com
Tue Oct 16 13:12:36 PDT 2012


On Mon, Oct 15, 2012 at 12:23 PM, Brendan Eich <brendan at mozilla.org> wrote:
> * get/set accessor may have effects on 'set' (see the DOM) but only on the
> receiver object (and unobservably, any children that become garbage, e.g.
> when trimming .length on an array-like).

That is very limiting, even as a guideline. Any time there are two or
more related objects it is very likely that a setter might affect some
other object.

-- 
erik


More information about the es-discuss mailing list