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

RE: Promises: Auto-assimilating thenables returned by .then() callbacks: yay/nay?

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Thu, 2 May 2013 19:55:12 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <B4AE8F4E86E26C47AC407D49872F6F9F7EF6F9E3@SN2PRD0510MB360.namprd05.prod.outlook.com>
From: Tab Atkins Jr. [jackalmage@gmail.com]

> While I clear that up (since the naming and the behavior are not inconsistent, which is extremely confusing),

This isn't really true. The `acceptCallback` is the callback called when the promise is fulfilled ("accepted" in the DOMFuture promise library). It uses `resolve` semantics to process its return values, but it would need to do that anyway, in order to get different behavior for promises and for values. You need to distinguish between the condition on which the callback is called, and the behavior of the callback with respect to its return values.

> can you comment on the rest of my message?

There's not much to say. I think assimilating thenables is good, for reasons that have been discussed at length before. You disagree. I have a hard time seeing what else you'd find helpful from me.
Received on Thursday, 2 May 2013 19:57:01 UTC

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