W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Re: How to correctly spec sequences requiring an iterable

From: Allen Wirfs-Brock <allen@wirfs-brock.com>
Date: Fri, 15 Nov 2013 08:26:25 -0800
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-Id: <6E7A7A0D-DD81-4EF1-8E74-34391D2CF8E1@wirfs-brock.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>

On Nov 15, 2013, at 8:08 AM, Boris Zbarsky wrote:

> This is about https://www.w3.org/Bugs/Public/show_bug.cgi?id=23683
> 
> An obvious question that arises is what the definition of iterable is.
> 
> Is it something for which HasProperty(obj, @@iterator) returns true?
> 
> Is it something for which GetProperty(obj, @@iterator) returns something other than undefined?
> 
> Is it something for which GetProperty(obj, @@iterator) returns a callable object?
> 
> Something else?

It is defined in the ES6 spec.  See http://people.mozilla.org/~jorendorff/es6-draft.html#sec-common-iteration-interfaces 

Allen





Received on Friday, 15 November 2013 16:27:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC