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

[sensors] Constructing a SensorReading with SensorReadingInit is non-optional?

From: Bryan B via GitHub <sysbot+gh@w3.org>
Date: Fri, 22 Jul 2016 17:29:17 +0000
To: public-device-apis@w3.org
Message-ID: <issues.opened-167093848-1469208554-sysbot+gh@w3.org>
bbernhar has just created a new issue for 
https://github.com/w3c/sensors:

== Constructing a SensorReading with SensorReadingInit is 
non-optional? ==
What is the rational of requiring a `SensorReading` object to be only 
constructed with a `SensorReadingInit` dict? The underlying sensor 
could provide default reading values and not require explicit such 
initialization.

Before:
`[Constructor(AmbientLightSensorReadingInit 
ambientLightSensorReadingInit)]`

After:
`[Constructor(optional AmbientLightSensorReadingInit 
ambientLightSensorReadingInit)]`

Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/116 using your GitHub account
Received on Friday, 22 July 2016 17:29:23 UTC

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