Claude Pache (2014-03-03T13:36:19.000Z)
Le 3 mars 2014 à 13:56, Andy Wingo <wingo at igalia.com> a écrit :

> On Mon 03 Mar 2014 12:49, Claude Pache <claude.pache at gmail.com> writes:
> 
>> Le 3 mars 2014 à 10:46, Andy Wingo <wingo at igalia.com> a écrit :
>> 
>>> 
>>> An iterable is simply an object with a callable @@iterator property.
>>> Calling @@iterator on an object and getting back a result is the
>>> sum-total of the iterator structural type -- so yes, this problem is
>>> solved.
>> 
>> What does exactly the spec think what an iterable is?
> 
> For what purpose?

For the purpose of giving the most reasonable answer to the `if (OBJ is Iterable)` test that Caitlin Potter was asking for earlier in this thread. 

For me, the answer should be the same as what makes `Array.from` choose between the branch "iterable" and the branch "array-like". Which, as I have said, I cannot guess until bug 2486 is resolved. Deeper philosophical thoughts over what an iterable *really* is don't matter.

—Claude
domenic at domenicdenicola.com (2014-03-06T23:06:48.794Z)
Le 3 mars 2014 à 13:56, Andy Wingo <wingo at igalia.com> a écrit :

> For what purpose?

For the purpose of giving the most reasonable answer to the `if (OBJ is Iterable)` test that Caitlin Potter was asking for earlier in this thread. 

For me, the answer should be the same as what makes `Array.from` choose between the branch "iterable" and the branch "array-like". Which, as I have said, I cannot guess until bug 2486 is resolved. Deeper philosophical thoughts over what an iterable *really* is don't matter.