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

[sensors] SensorIdentifier is bizarre

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Jun 2015 15:15:23 +0000
To: public-device-apis@w3.org
Message-ID: <issues.opened-86217651-1433776522-sysbot+gh@w3.org>
domenic has just created a new issue for 

== SensorIdentifier is bizarre ==
> ```
> typedef (Symbol or URL or USVString) SensorIdentifier;
> ```

First, URL is not appropriate here: 

Second, why would you use a Symbol?

Third, why is this an "or"? Is the idea here that implementations are 
allowed to be inconsistent---some of them returning URL objects, some 
of them Symbols, and some of them USVStrings? Or even a random mix?? 
What does that accomplish? Just decide on a type.

Fourth, why USVString instead of DOMString? 
https://heycam.github.io/webidl/#idl-USVString Why does this 
particular case *need* a string of Unicode scalar values?

See https://github.com/w3c/sensors/issues/30
Received on Monday, 8 June 2015 15:15:25 UTC

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