W3C home > Mailing lists > Public > public-geolocation@w3.org > July 2008

RE: skeleton Geolocation API

From: Chris Butler <cbutler@dash.net>
Date: Mon, 28 Jul 2008 10:09:45 -0700
Message-ID: <470455FBB46F8749A645E9F732A72C35029CB333@ex-be2.dash.net>
To: "Andrei Popescu" <andreip@google.com>, "Shyam Habarakada" <shyamh@microsoft.com>
Cc: "Doug Turner" <doug.turner@gmail.com>, "Chris Prince" <cprince@google.com>, "Alec Berntson" <alecb@windows.microsoft.com>, "Aaron Boodman" <aa@google.com>, <public-geolocation@w3c.org>

Hi everyone.

This is a little bit of a different issue and may add color to the
discussion regarding optional vs. required: what are all the possible
errors we are considering?

Would timeouts be part of it?



-----Original Message-----
From: public-geolocation-request@w3.org
[mailto:public-geolocation-request@w3.org] On Behalf Of Andrei Popescu
Sent: Monday, July 28, 2008 9:22 AM
To: Shyam Habarakada
Cc: Doug Turner; Chris Prince; Alec Berntson; Aaron Boodman;
Subject: Re: skeleton Geolocation API


On Mon, Jul 28, 2008 at 5:16 PM, Shyam Habarakada <shyamh@microsoft.com>
> Any other feedback on this topic? It would be great to drive the topic
on the signature of get/watch functions to closure.
> Andrei,
> The group has had a lot of good discussion on if errorCallback should
or should not be optional. And most people who commented also indicated
that they could go either way on that ...
> Current proposal is,
>    void getPosition(successCallback, errorCallback [,
>    int watchPosition(successCallback, errorCallback [,
> where,
>    successCallback is required and must be non-null (else the method
will throw at runtime).
>    errorCallback // OPEN ISSUE on whether this is optional or
>    positionOptions is optional and may be null.

Yes, I followed the discussion:

- Aaron made a good case for why errorCallback should be optional.
- There are precedents in HTML 5 where a developer can pass null for a
callback she isn't interested in.

As I said on Friday, I think we should make errorCallback optional. If
someone wants to pass a PositionOption param but not handle errors,
they can just pass null for the second parameter. I'll update the spec
and ping the list later today.

Received on Monday, 28 July 2008 17:10:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:33:50 UTC