Using Web IDL enums instead of numeric constants

Hi all,

Should we consider using Web IDL enums instead of numeric constants for
things in the spec which are actually enumerated values?  The Web IDL
enumerations are strings which have the advantage of just having a
self-describing name, and Web IDL implementation will ensure that only
valid strings can be used when calling functions which accept those enums.
Please see http://www.w3.org/TR/WebIDL/#idl-enums for more information on
Web IDL enums.

Thanks!
--
Ehsan
<http://ehsanakhgari.org/>

Received on Friday, 21 September 2012 15:56:09 UTC