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

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