Re: An iterable DOM

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