W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] Promise.every() arguments

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 20 Aug 2013 22:23:16 +0100
Message-ID: <CADnb78j18=7+k17wU8D1CCEwkoR14rTyctMuLP2yOyD1hS4iuQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: WHATWG <whatwg@lists.whatwg.org>, Alec Flett <alecflett@chromium.org>
On Tue, Aug 20, 2013 at 10:00 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> ES6 has array spreading, so you can do `Promise.every(...pending)`.
> This already works in Firefox, and V8 (Chrome's JS engine) is adding
> these kinds of features as well.

Domenic made an argument somewhere that since the value of the promise
will be an array, the input should maybe be an array too. Seemed
somewhat reasonable. I agree that due to spreading we shouldn't
consider OP's argument though.


-- 
http://annevankesteren.nl/
Received on Tuesday, 20 August 2013 21:23:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC