W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2016

Re: [sensors] LaughometerSensor vs Laughometer?

From: Rick Waldron via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Sep 2016 15:52:03 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-248033150-1474300305-sysbot+gh@w3.org>
@tobie according to @marcoscaceres, namespaces are now supported. 

- http://heycam.github.io/webidl/#idl-namespaces
- https://github.com/heycam/webidl/pull/121/files

----------------------------------------------------------------

@domenic 

> In general we didn't see any advantage in sprinkling dots 
everywhere. I.e. XSensor is better (fits with existing practice, etc.)
 vs. sensors.X.

This isn't a compelling (or even substantive) argument in a runtime 
that supports destructuring:

```js
const { Accelerometer, Gyroscope } = sensors;
// no more "sprinkled" dots. 
```


----------------------------------------------------------------

@riju 

> I understand the "grouping related classes under a namespace" 
reasoning, but cannot see benefits beyond that.

That is the point I consider to be the most important.

----------------------------------------------------------------

Sorry I was unable to attend any meeting or call, I had a doctors 
appointment at 9:30 (UTC-04:00, presently) which was an hour away by 
car. 




-- 
GitHub Notification of comment by rwaldron
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/127#issuecomment-248033150 using
 your GitHub account
Received on Monday, 19 September 2016 15:52:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:21 UTC