W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[Bug 16075] Make a float/double type that excludes NaN/Infinity/-Infinity

From: <bugzilla@jessica.w3.org>
Date: Tue, 06 Mar 2012 03:00:37 +0000
To: public-script-coord@w3.org
Message-Id: <E1S4kdh-0001mT-8b@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16075

--- Comment #8 from Cameron McCormack <cam@mcc.id.au> 2012-03-06 03:00:36 UTC ---
(In reply to comment #7)
> Do we want to do the same thing with Date's? A javascript Date object can be an
> "invalid date". This happens for example for
> 
> x = new Date("foo");

Possibly, although Dates are used far less often than floats/doubles so I'm not
sure whether it's worth it at the moment.  There are only two uses of Date that
are taken as input that I could find: HTMLInputElement.valueAsDate and
Contact.birthday (from the Contacts API spec).  The former handles NaN dates
specifically to do something other than throwing.  The latter doesn't say what
it means for the birthday to be the invalid date value, but it also doesn't
have much detail there.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 6 March 2012 03:00:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC