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

Re: [magnetometer] Provide API to access uncalibrated magnetometer values

From: Rick Waldron via GitHub <sysbot+gh@w3.org>
Date: Tue, 15 Nov 2016 15:07:07 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-260665916-1479222424-sysbot+gh@w3.org>
> I'm surprised people still use instanceof, but that seems like a 
pretty big foot gun if they do, so I think it makes sense not to use 
inheritance here.

I just assumed he was using `instanceof` to illustrate that `reading` 
would be an instance of whichever, based on whatever the user set in 
the `Magnetometer` options. 

-- 
GitHub Notification of comment by rwaldron
Please view or discuss this issue at 
https://github.com/w3c/magnetometer/issues/16#issuecomment-260665916 
using your GitHub account
Received on Tuesday, 15 November 2016 15:07:13 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC