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

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