W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

Re: [sensors] getAll()?

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Tue, 09 Jun 2015 17:04:26 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-110434938-1433869464-sysbot+gh@w3.org>
> I've been getting ERR_CONNECTION_TIMED_OUT for two of those links 
for about an hour.

Weird. They seem to WFM.

> getAll is method of the instance, not a static class method.

Right. But depending on the outcome of #28 and some possible design 
around that, `Sensor.getAll()` could very well end up as an instance 
method exposed on the `sensors` attribute of the Global object (just a
 thought). See, for example, the [`Clients` interface][1] in 
ServiceWorkers.

That said, I don't think it's worth looking too closely at the details
 right now, at least not until we solidify the overall architecture.

> I don't agree that Sensor has any consistency obligation here.

I don't like to look at consistency as an obligations, but as weight 
you put in the balance when designing APIs. Something that's 
voluntarily inconsistant with other parts of the platform better have 
good reasons to be so.

[1]: 
https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#clients-interface

-- 
GitHub Notif of comment by tobie
See https://github.com/w3c/sensors/issues/32#issuecomment-110434938
Received on Tuesday, 9 June 2015 17:04:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:05 UTC