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

Re: ISSUE-73: Are we going to support non-ECMAScript languages?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 7 Apr 2006 01:56:34 +0000 (UTC)
To: Maciej Stachowiak <mjs@apple.com>
Cc: Cameron McCormack <cam@mcc.id.au>, Web APIs WG <public-webapi@w3.org>
Message-ID: <Pine.LNX.4.62.0604070156100.21459@dhalsim.dreamhost.com>

On Thu, 6 Apr 2006, Maciej Stachowiak wrote:
> 
> Here's a possibly too cute solution that would make things language- 
> independent but add nothing new for JavaScript:
> 
> interface WindowXMLHttpRequest {
>     XMLHttpRequest XMLHttpRequest();
> }
> 
> In other words, require a function on the global object named 
> XMLHttpRequest which makes a new instance for you.
> 
> And for JavaScript allow it to be used as a constructor too.
> 
> In fact this fairly accurately describes what current implementations 
> already do.

Worksforme.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 7 April 2006 01:56:43 GMT

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