W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: Timers in window interface

From: Christophe Jolif <cjolif@ilog.fr>
Date: Tue, 07 Mar 2006 10:50:55 +0100
Message-ID: <440D577F.5040902@ilog.fr>
To: Jonas Sicking <jonas@sicking.cc>
CC: Maciej Stachowiak <mjs@apple.com>, Ian Davis <Ian.Davis@talis.com>, public-webapi@w3.org

Hi,

Jonas Sicking wrote:

>> My intent was doing this was that ECMAScript bindings would define a 
>> special rule so that only functions or strings are actually accepted, 
>> much the way functions are accepted by EventTarget.addEventListener. 
>> The reason for this is that the "function or string" interface doesn't 
>> really work for non-ECMAScript languages. In particular, for Java, 
>> "eva this string" is not a sensible interface.
> 
> Personally, I wouldn't mind seing support for passing a string to 
> setTimeout deprecated. Unless someone has a good usecase of course.
> 
> If we really do want to allow a string to be passed then I like the 
> approach of defining special ECMAScript bindings to handle it.

I fully agree with these two statements. The string version doesn't 
bring much (until now I never find myself in a situation I have to use 
it) and in any case if kept should be considered as an ECMAScript 
binding-only thing.

-- 
Christophe
Received on Tuesday, 7 March 2006 09:57:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT