Re: WebIDL, optional attributes

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