W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2012

Re: Using Web IDL enums instead of numeric constants

From: Ehsan Akhgari <ehsan.akhgari@gmail.com>
Date: Mon, 24 Sep 2012 18:31:02 -0400
Message-ID: <CANTur_6KN1ZzCh6nHF8iXasVtsk8FKG6=T6eQN5MPnSG_QSq6w@mail.gmail.com>
To: olivier Thereaux <olivier.thereaux@bbc.co.uk>
Cc: public-audio@w3.org
On Fri, Sep 21, 2012 at 12:03 PM, olivier Thereaux <
olivier.thereaux@bbc.co.uk> wrote:

> Hi Ehsan,
> On 21 Sep 2012, at 16:55, Ehsan Akhgari wrote:
> > Should we consider using Web IDL enums instead of numeric constants for
> things in the spec which are actually enumerated values?
> I recall we had an issue about that. Ah, yes:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=17323
> The bug is currently closed, my bad as I thought we'd fixed all the
> IDL-related issues with your recent set of changes. Feel free to reopen it.
> As for you question, if indeed enums are more expressive and closer to our
> spec in prose, I see no reason to not use them.

Just to make it clear, it will break the existing implementation in WebKit
since the API will change to use strings instead of numbers.  Is that OK?

Received on Monday, 24 September 2012 22:34:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:11 UTC