W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

[Bug 24291] Add a Promise type to WebIDL, and make it not distinguishable from anything

From: <bugzilla@jessica.w3.org>
Date: Thu, 23 Jan 2014 02:34:44 +0000
To: public-script-coord@w3.org
Message-ID: <bug-24291-3890-6Ki8qbsoqG@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24291

--- Comment #8 from Domenic Denicola <domenic@domenicdenicola.com> ---
Tab, would you mind sharing the specific example where you think unioning is
useful?

To be clear, the plan is that an API accepting a promise will take anything you
give it and run it through `Promise.cast` before processing it. So you kind of
automatically get "unioning" of a sort: you can pass in any non-promise value,
and it becomes (via WebIDL overload resolution) a promise for that value.

Is that what you had in mind, or is it something different?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 23 January 2014 02:34:45 UTC

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