W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > September 2016

Re: [mediacapture-main] Should we use [EnforceRange] on min/max in constraints?

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Sep 2016 09:24:50 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-244025018-1472721888-sysbot+gh@w3.org>
The TAG advice at 
https://w3ctag.github.io/design-principles/#numeric-types suggests 
using [EnforceRange] long long.
I don't see a powerful reason to change the interface type, but it's a
 nudge towards preferring [EnforceRange] over [Clamp].

(Amusement: WebIDL "double" throws TypeError on being passed infinity.
 WebIDL "long" doesn't.)

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/384#issuecomment-244025018
 using your GitHub account
Received on Thursday, 1 September 2016 09:24:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:30 UTC