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

Re: [WebIDL] Make [AllowAny] the default?

From: Brendan Eich <brendan@mozilla.org>
Date: Thu, 8 Dec 2011 16:32:17 -0800
Cc: Anne van Kesteren <annevk@opera.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Travis Leithead <travis.leithead@microsoft.com>
Message-Id: <FEE20638-5DDD-43E4-A494-6E6F9F4CE313@mozilla.org>
To: Cameron McCormack <cam@mcc.id.au>
On Dec 8, 2011, at 4:19 PM, Cameron McCormack wrote:

> I agree that with "Node or DOMString" you're much more likely to get a useful result from converting the JS value to a string rather than a Node.  Is that going to be the common case to warrant choosing DOMString over the Node?  What about other types like "Node or float" or "Node or DOMString or float"?
> 
> Or should we make order within the union type matter here too?

Order is fragile under maintenance. It's brute force, you could do it, but more usable and less brittle would be something that accounts for type relations via inheritance, broadly construed. Didn't someone mention C3 already? (http://en.wikipedia.org/wiki/C3_linearization)

/be
Received on Friday, 9 December 2011 00:33:13 UTC

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