Anne van Kesteren (2013-10-30T17:21:37.000Z)
On Wed, Oct 30, 2013 at 5:14 PM, Brendan Eich <brendan at mozilla.com> wrote:
> Anne van Kesteren wrote:
>> This is different from how sequence<T>  behaves in IDL. (It uses
>> array-likes.) :/
>
> This is more general, since array-likes should be iterable to be like
> arrays, which are iterable.
>
> So this seems ok. Right?

An array-like only "length" and properties "0", "1", ... as far as I
know. I thought iterable meant they implement the iterator protocol.


-- 
http://annevankesteren.nl/
domenic at domenicdenicola.com (2013-11-03T22:29:05.275Z)
On Wed, Oct 30, 2013 at 5:14 PM, Brendan Eich <brendan at mozilla.com> wrote:

> This is more general, since array-likes should be iterable to be like
> arrays, which are iterable.
>
> So this seems ok. Right?

An array-like only "length" and properties "0", "1", ... as far as I
know. I thought iterable meant they implement the iterator protocol.