Anne van Kesteren wrote:
On Tue, May 21, 2013 at 12:19 PM, Brendan Eich<bren...@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).

So? Make your custom map-ish thing map-like, just as array-likes work with Array generics: by duck typing.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to