Overriding Map/etc with get/set hooks?

Anne van Kesteren annevk at annevk.nl
Tue May 21 06:30:13 PDT 2013


On Tue, May 21, 2013 at 12:19 PM, Brendan Eich <brendan at mozilla.com> wrote:
> So Tab: why do you want to abuse Map instead of make a custom class?

As we tried to explain before, the believe is that a lot of Map
generics will work directly on this Map-like object, similar to how we
want Array methods to work directly on NodeList & co, despite NodeList
not being a JS Array (not mutable for one).


--
http://annevankesteren.nl/


More information about the es-discuss mailing list