- From: Brendan Eich <brendan@mozilla.org>
- Date: Thu, 8 Dec 2011 16:32:17 -0800
- To: Cameron McCormack <cam@mcc.id.au>
- Cc: Anne van Kesteren <annevk@opera.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Travis Leithead <travis.leithead@microsoft.com>
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