W3C home > Mailing lists > Public > public-geolocation@w3.org > June 2009

Re: WebIDL, optional attributes

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 10 Jun 2009 13:32:30 +0200
To: "Andrei Popescu" <andreip@google.com>, "Marcin Hanclik" <Marcin.Hanclik@access-company.com>
Cc: public-geolocation <public-geolocation@w3.org>
Message-ID: <op.uva3ogpx64w2qv@annevk-t60>
On Wed, 10 Jun 2009 13:27:58 +0200, Andrei Popescu <andreip@google.com> wrote:
> On Wed, Jun 10, 2009 at 10:40 AM, Marcin
> Hanclik<Marcin.Hanclik@access-company.com> wrote:
>> b) interface Coordinates uses type "double".
>> WebIDL does not know this type. Could we use "float"?
>> Or if we need more precision maybe {long, long} (a new interface)  
>> should be used?
>
> I don't think this is a problem: I haven't seen any implementers
> complaining about this. 'double' is pretty clear and maps well to JS's
> Number type.

It is still an issue though. Web IDL does not define how double maps to ECMAScript. In fact, your IDL fragment would not parse. So either you request on public-webapps@w3.org that Web IDL is changed to allow for double or you switch to using float.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 10 June 2009 11:33:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:56 UTC