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

Re: Using Web IDL enums instead of numeric constants

From: olivier Thereaux <olivier.thereaux@bbc.co.uk>
Date: Fri, 21 Sep 2012 17:03:31 +0100
Cc: <public-audio@w3.org>
Message-Id: <4F26859D-8A1E-4BF2-B224-99154510744E@bbc.co.uk>
To: Ehsan Akhgari <ehsan.akhgari@gmail.com>
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:

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.

Received on Friday, 21 September 2012 16:03:51 UTC

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