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

Re: Function type

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 28 Dec 2011 10:18:14 +0100
To: public-script-coord@w3.org
Message-ID: <op.v66z4oa264w2qv@annevk-macbookpro.local>
On Wed, 28 Dec 2011 07:21:35 +0100, Cameron McCormack <cam@mcc.id.au>  
> I don't think more specs should depend on the definition of Function  
> that's in HTML, since it's kind of non-specific and designed to work  
> with the weirdo timer APIs.  We have callbacks in Web IDL now, and specs  
> that need them should define more specific signatures to use.

You suggested using

   callback Function = any (any... arguments);

in https://www.w3.org/Bugs/Public/show_bug.cgi?id=14916 I was wondering if  
that includes [TreatNonCallableAsNull] and if not, how that needs to be  
included. That was part of the reason why it would be nice if Web IDL had  
the definition instead, so we could remove [TreatNonCallableAsNull] and  
just have 'function'. (I believe we discussed this already but I cannot  
find it in the archives. Sorry!)

Anne van Kesteren
Received on Wednesday, 28 December 2011 09:18:37 UTC

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