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

Re: How to correctly spec sequences requiring an iterable

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 15 Nov 2013 13:07:34 -0500
Message-ID: <528662E6.8040605@mit.edu>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: Jason Orendorff <jason.orendorff@gmail.com>, public-script-coord@w3.org
On 11/15/13 12:55 PM, Allen Wirfs-Brock wrote:
> Now, that's an interesting question.
>      "thisIsAPrimitiveString"[Symbol.interator]
> Returns the value of
>       String.prototype[@@iterator]

Sure; the question is whether I check whether I have an object first.

Note that I've seen people wanting to overload "DOMString or 
sequence<DOMString>" and current JS libraries commonly support that (via 
typeof tests).

Received on Friday, 15 November 2013 18:08:03 UTC

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