Re: Numeric constants vs enumerated strings

On Wed, 15 Feb 2012 14:57:00 +0100, Harald Alvestrand  
<> wrote:
> *This is a call for help from the WEBRTC working group.
> We are defining a new API
> ( <about:blank>which
> has a number of cases where it needs to use arguments, or expose state
> variables, that can take only a limited set of values.

Unless there are strong ties to certain legacy APIs I would suggest using  
strings. They are easier for developers to author, easier for developers  
to maintain, easier in the future to extend, and have practically no  

Anne van Kesteren

Received on Wednesday, 15 February 2012 14:08:43 UTC