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

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 the QA Contact for the bug.

Received on Thursday, 23 January 2014 02:34:46 UTC