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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 06 Dec 2011 11:38:36 +0100
To: "Cameron McCormack" <cam@mcc.id.au>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>, "Travis Leithead" <travis.leithead@microsoft.com>
Message-ID: <op.v52c6mex64w2qv@annevk-macbookpro.local>
On Tue, 06 Dec 2011 06:14:36 +0100, Cameron McCormack <cam@mcc.id.au>  
> If we proceed with changing the overload resolution algorithm as  
> proposed in the other thread, then I think we should drop [AllowAny] and  
> then you can just rely on the ordering of the operations on the  
> interface to influence which overload is chosen when a non-matching type  
> is passed.  WDYT?

Okay, that means I can no longer order them in alphabetical order, but  
that really does not matter :-) It does seem somewhat weird that the order  
matters, but otherwise the type would matter, which would also be weird.

Having said that, for unions (not introduced yet) you also need this. So  
there I assume that "Node or DOMString" means everything will be DOMString  
if not Node. (In fact, in case of XMLHttpRequest we could describe send()  
as a union too, there's no particular need for overloading there.)

Anne van Kesteren
Received on Tuesday, 6 December 2011 10:39:29 UTC

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