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

Re: Web Bluetooth hybrid API

From: Jeffrey Yasskin <jyasskin@chromium.org>
Date: Thu, 24 Sep 2015 07:53:42 -0700
Message-ID: <CANh-dXme-TNG5-S6hrDHZsO+X7eWAzuTQR6gt++xzw-kXRPyAQ@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Rob Moran <Rob.Moran@arm.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
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

This archive was generated by hypermail 2.3.1 : Thursday, 24 September 2015 14:54:34 UTC