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

Re: map() annotation for iterables?

From: Brendan Eich <brendan@secure.meer.net>
Date: Sat, 04 Oct 2014 22:58:49 -0700
Message-ID: <5430DE19.4090605@secure.meer.net>
To: Boris Zbarsky <bzbarsky@mit.edu>
CC: Domenic Denicola <domenic@domenicdenicola.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Boris Zbarsky wrote:
> On 10/5/14, 1:04 AM, Brendan Eich wrote:
>> Right, see https://www.w3.org/Bugs/Public/show_bug.cgi?id=26973#c3.
> Right, I'm not talking about for-of but directly doing map/filter 
> operations on iterables. 

Agree we want both. Provided the right class instance (Map for 
MapIterator) is created, the iterable prototype methods seem just as 
generic. This really wants something hard (not impossible, just 
undertested) to add: Iterable.prototype or an unnamed 
%IterablePrototype% above Array.prototype, Map.prototype, Set.prototype, 
etc. Someone please raise on es-discuss, if this seems right.

Received on Sunday, 5 October 2014 05:59:20 UTC

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