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

Re: [WebIDL] Simplify callbacks

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 14 Nov 2011 23:28:36 +0100
To: "Jonas Sicking" <jonas@sicking.cc>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <op.v4yjdyyr64w2qv@annevk-macbookpro.local>
On Thu, 10 Nov 2011 18:15:46 +0100, Jonas Sicking <jonas@sicking.cc> wrote:
> It has most certainly sailed in many cases. Like for the EventListener
> interface I strongly doubt that we can change it.
>
> However if there are newer interfaces I suspect that we can change it
> there. Especially if not all implementations support the
> pass-in-object-rather-than-Function syntax.
>
> And it's most certainly not sailed for interfaces not defined yet.
>
> So in short, "consistency" is the opposite of what we want here, so we
> should not create WebIDL constructs which encourages it.

My latest proposal was actually to have legacycallback for the  
EventListener behavior and just have callback for the new behavior.  
legacycallback would accept the object-stuff, callback would not. But it  
seems some people like the object stuff :-(


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 14 November 2011 22:29:17 UTC

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