W3C home > Mailing lists > Public > public-device-apis-log@w3.org > April 2021

Re: [proximity] Behavior of `distance` attribute when sensor cannot provide distance measurements? (#44)

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Thu, 08 Apr 2021 15:55:38 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-815941929-1617897337-sysbot+gh@w3.org>
> @domenic, wondering if maybe you could provide us with some guidance here? Is there precedence for returning undefined from an IDL attribute in the manner described above? It might be something we then send up to the API design guidelines.

No, there's no such precedent. Web platform APIs should use null, not undefined, for this. (Or a similar sentinel value such as positive infinity.)

-- 
GitHub Notification of comment by domenic
Please view or discuss this issue at https://github.com/w3c/proximity/issues/44#issuecomment-815941929 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 8 April 2021 15:55:40 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 8 April 2021 15:55:42 UTC