W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: Can IndexedDB depend on JavaScript? (WAS: [Bug 9793] New: Allow dates and floating point numbers in keys)

From: Maciej Stachowiak <mjs@apple.com>
Date: Sat, 22 May 2010 20:06:50 -0700
Cc: public-webapps@w3.org, Ian Hickson <ian@hixie.ch>
Message-id: <E5ECAC68-221E-4668-8385-6F345AB663DF@apple.com>
To: Jeremy Orlow <jorlow@chromium.org>

On May 22, 2010, at 3:58 AM, Jeremy Orlow wrote:

> Even though no one is currently considering implementing this outside of JavaScript land and even though it'll limit us some and making speccing harder, I think it'd be a mistake to depend on JavaScript.  And, as far as I can tell, the whole point of WebIDL is to not depend on one single language.  And I can't think of any others that do.

WebKit exposes Web APIs as part of the native API for embedders, this includes Objective-C and GObject bindings. There have also been suggestions to add bindings for languages such as Python, Java or Ruby. I think interfaces for Web platform APIs should remain language-agnostic to the degree possible.

For the date issue specifically, we should consider adding a Web IDL date type which could map to JavaScript Date objects and potentially native date types for other languages, and something language agnostic for ether languages.

Regards,
Maciej
Received on Sunday, 23 May 2010 03:07:26 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:38 GMT