[sensors] SensorIdentifier is bizarre

domenic has just created a new issue for 
https://github.com/w3c/sensors:

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

First, URL is not appropriate here: 
https://url.spec.whatwg.org/#url-apis-elsewhere

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