W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2010

[Bug 11451] Add a string enum type

From: <bugzilla@jessica.w3.org>
Date: Wed, 01 Dec 2010 22:19:30 +0000
To: public-script-coord@w3.org
Message-Id: <E1PNv1O-0006ah-Pd@jessica.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:02 UTC