W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: An iterable DOM

From: Brendan Eich <brendan@meer.net>
Date: Wed, 20 Jun 2012 18:23:21 -0700
Message-Id: <05F1AA5B-AED5-414E-B026-9EF7DD6E57B3@meer.net>
Cc: Jason Orendorff <jason.orendorff@gmail.com>, public-script-coord <public-script-coord@w3.org>
To: Cameron McCormack <cam@mcc.id.au>
On Jun 20, 2012, at 6:13 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> I think it would be preferable though to annotate an interface as being an iterator, rather than inheriting from some special Iterator interface, because at least for NodeIterator I don't think you would want to want or need to inherit from an Iterator.prototype -- there wouldn't be anything useful to inherit from there, at least.

Agreed. We should not add nominal types to mix in or inherit from if we can help it. Iteration is a structural protocol.
> 

/be
Received on Thursday, 21 June 2012 01:23:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC