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:58:15 +0100
Message-ID: <CADnb78ifThBHC+nW9VEnmWbqB4sSPpZ2XvyBrqnp6ioMO9bT4Q@mail.gmail.com>
To: Alec Flett <alecflett@chromium.org>
Cc: WHATWG <whatwg@lists.whatwg.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
On Tue, Aug 20, 2013 at 10:42 PM, Alec Flett <alecflett@chromium.org> wrote:
> Promises are going to be out way before ES6, it seems unfortunate that
> everyone's going to have to use Promise.every.apply though, since spreading
> is a syntax error in non-ES6... it means you can't polyfill it in the
> general case. (And maybe there's some generic answer to that aspect of ES6 -
> I'm admittedly not up to speed on the ES6 future-compatible story)

We already decided against this argument for new APIs (e.g. see new
stuff in DOM). Where spreading makes sense, it should be used. (The
future is longer than the past.)


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

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