W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Promises: final steps

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 3 Sep 2013 14:37:54 +0100
Message-ID: <CADnb78iES7dyw3UhROKkP1D+MBHUmMt3-Lhpe5ibi-V5erPZRA@mail.gmail.com>
To: es-discuss <es-discuss@mozilla.org>, "www-dom@w3.org" <www-dom@w3.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
As many of you hopefully know, we're trying to nail down the design of
promises in JavaScript so we can declare consensus on it and start
shipping it in implementations. If you're interested in the
particulars I strongly recommend reading through
https://github.com/domenic/promises-unwrapping/blob/master/README.md
and partaking in the
https://github.com/domenic/promises-unwrapping/issues discussion. The
next TC39 is coming close and this really needs to be resolved (not
settled!) by then as there are many APIs relying on promises now.

Eg in https://github.com/domenic/promises-unwrapping/issues/8 we
decided on Promise.cast() as IsPromise(x) ? x : Promise.resolve(x).

https://github.com/domenic/promises-unwrapping/issues/18 suggests
adding Promise.prototype.finally() and
https://github.com/domenic/promises-unwrapping/issues/13 discusses
which convenience methods we should add in the first iteration.

I suggest we focus on the minimal subset that works (which I know is
different for people, but let's aim for consensus) and then iterate
again after we have a couple of implementations out there.


-- 
http://annevankesteren.nl/
Received on Tuesday, 3 September 2013 13:38:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC