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

Re: Futures

From: Kevin Smith <zenparsing@gmail.com>
Date: Fri, 26 Apr 2013 15:23:20 -0400
Message-ID: <CA+mDt2wSUqO07NWeKD96ZE1zE1oJ=8ybiDJH_boD30LvW4eHvg@mail.gmail.com>
To: Juan Ignacio Dopazo <dopazo.juan@gmail.com>
Cc: Anne van Kesteren <annevk@annevk.nl>, "public-script-coord@w3.org" <public-script-coord@w3.org>, EcmaScript <es-discuss@mozilla.org>
> Oops yeah. I guess that should be fixed. :/
>>
>
> Fixing that would break compatibility with Promises/A+. To remain
> compatible with A+ and unwrap only one layer, the spec would need a way to
> discern promises from thenables.
>

I don't think so.  It has no bearing on Promises/A+, because A+ doesn't
test the case where the promise's value is itself a promise.  Or to put it
another way, in A+ `then` will never give you a promise.

I've made the change to my prototype and it still passes A+ (as well as
passing that gist I linked to).

{ Kevin }
Received on Friday, 26 April 2013 19:23:47 UTC

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