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

Re: What are the desired semantics of forEach for iterables?

From: Domenic Denicola <d@domenic.me>
Date: Wed, 11 Nov 2015 19:29:06 +0000
To: Boris Zbarsky <bzbarsky@mit.edu>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <CY1PR0501MB136964F9767010126E976A5ADF130@CY1PR0501MB1369.namprd05.prod.outlook.com>
From: Boris Zbarsky <bzbarsky@mit.edu>

> Which acts Array-ish in the one impl that has forEach on it, right?

Right, it's just a tough case since it's conceptually set-like.

> What I would like to propose is that we only allow one-type iterables on things with an indexed getter for now, make it clear that once we have a concrete use case for something else we will figure out how it should work (so people who have such a use case will tell us about it), and for the "one-type iterable with indexed getter" case use Array-ish behavior.

Yeah, this sounds good to me.
Received on Wednesday, 11 November 2015 19:29:36 UTC

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