Re: [Future] reject() value type

On Wed, May 8, 2013 at 10:49 AM, Mounir Lamouri <mounir@lamouri.fr> wrote:
> Finally, as David Bruant suggested to me, I think it would be good to
> advertise the error type in the IDL as much as the success type, like
> "Future<Success, Error>", so developers don't have to guess what is
> returned when an error occurs.

This part makes sense for APIs defined by the platform, but for any
other purpose errors should just match whatever you can do with throw
today.


--
http://annevankesteren.nl/

Received on Wednesday, 8 May 2013 17:53:44 UTC