[Bug 11451] Add a string enum type

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11451

Jonas Sicking <jonas@sicking.cc> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonas@sicking.cc

--- Comment #2 from Jonas Sicking <jonas@sicking.cc> 2010-12-01 22:19:30 UTC ---
What is the proposal here? Wouldn't allowing something like:

interface XMLHttpRequest {
  ...
  const DOMString REQUESTTYPE_FOO = "foo";
  ...
};

sort of defeat the purpose since people are bound to get into cargo-cult
copying of code like:

xhr.requestType = XMLHttpRequest.REQUESTTYPE_FOO;

as well as rat-hole discussions about if best practice is to do the above or to
use the sting "foo" directly.


Or is the proposal here something wholly different and I'm totally
misunderstanding things?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Wednesday, 1 December 2010 22:19:33 UTC