Re: Web Bluetooth hybrid API

On Thu, Sep 24, 2015 at 6:05 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Thu, Sep 24, 2015 at 11:56 AM, Rob Moran <Rob.Moran@arm.com> wrote:
> > We were wondering if a hybrid approach was considered when defining the
> > specification which allows the choice of using promises (if available)
> or a
> > callback with an error object.
>
> This does not seem the correct list for Web Bluetooth. Having said
> that, if the only difference is style, promises are most definitely to
> be used over callbacks for JavaScript APIs. I don't really have a
> pointer at hand, but that's the practice we follow for any new API.
>

Rob asked on public-web-bluetooth first, and I forwarded him to here, since
it is a style question rather than a question about anything particular to
Bluetooth.

Jeffrey

Received on Thursday, 24 September 2015 14:54:33 UTC