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

[Bug 11451] Add a string enum type

From: <bugzilla@jessica.w3.org>
Date: Tue, 20 Dec 2011 23:35:49 +0000
To: public-script-coord@w3.org
Message-Id: <E1Rd9Dp-0002yl-9N@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=11451

--- Comment #20 from Cameron McCormack <cam@mcc.id.au> 2011-12-20 23:35:47 UTC ---
I wasn't planning on exposing the enum in any way.  If we make unknown string
values assigned to attributes be ignored, that can be used to feature detect. 
Similarly for catching an exception if that's how we make operations handle
unknown values.

(In reply to comment #15)
> Some recent APIs that take dictionaries define the dict as an interface that
> you can poke at to find support.  It would be nice to have the same with enums.

Not sure what you mean by defining a dictionary as an interface.  Do you mean
like `[Callback] interface SomeOptions { ... }`, the style used before
dictionaries were introduced?

-- 
Configure bugmail: https://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 Tuesday, 20 December 2011 23:35:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC