- From: Brendan Eich <brendan@meer.net>
- Date: Wed, 20 Jun 2012 18:23:21 -0700
- To: Cameron McCormack <cam@mcc.id.au>
- Cc: Jason Orendorff <jason.orendorff@gmail.com>, public-script-coord <public-script-coord@w3.org>
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