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

[Bug 26517] Methods that return promises are unable to throw exceptions

From: <bugzilla@jessica.w3.org>
Date: Wed, 06 Aug 2014 03:56:56 +0000
To: public-script-coord@w3.org
Message-ID: <bug-26517-3890-LSw01blLzm@http.www.w3.org/Bugs/Public/>

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> ---
>   typedef (Promise<Foo> or Whatever) PromiseFoo;
>   PromiseFoo bar();

I think Web IDL should disallow this, just like it disallows having overloads
some of which return a Promise and some of which do not; there are no sane
non-hacky use cases I can think of for it.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 6 August 2014 03:56:58 UTC

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