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

Re: Unrestricted float

From: Brendan Eich <brendan@mozilla.org>
Date: Sat, 07 Apr 2012 20:02:16 -0700
Message-ID: <4F80FFB8.8070107@mozilla.org>
To: Anne van Kesteren <annevk@opera.com>
CC: public-script-coord@w3.org
Anne van Kesteren wrote:
> On Sat, 07 Apr 2012 01:19:20 +0200, Brendan Eich <brendan@mozilla.org> 
> wrote:
>> Just as a point of sane engineering in the large over multiple past 
>> dependent specs, why were the meanings of float and double changed, 
>> rather than adding 'restricted float' and 'restricted double' types?
>
> Because when this was added the evaluation was that most 
> specifications would want restricted semantics (and had not considered 
> Nan/Infinity). I'm not sure Hixie is correct that everything in HTML 
> should change, I think it is mostly (if not only) the canvas related 
> members.

Can someone take a census?

Anyway, even with the majority favoring 'restricted', it's a bit of a 
mind-trap for anyone coming from C and similar languages.

/be
Received on Sunday, 8 April 2012 03:02:58 UTC

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