Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28017

Re: null and NaN

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: null and NaN
Date Sun, 07 Jun 2015 09:59 +0200
Organization PointedEars Software (PES)
Lines 44
Message-ID <6583706.BrqscuLzCi@PointedEars.de> (permalink)
References <null-20150602191404@ram.dialup.fu-berlin.de> <mkr6jk$sfb$1@speranza.aioe.org> <1887823.QYRqh1XSJF@PointedEars.de> <ml09gj$mhn$1@speranza.aioe.org>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1433664101 3997 eJwFwYEBACAEBMCVEo/Goc/+I3QHdfEb5nDDYFR6xBhZsliX0IY0mrl5HlZh6JUd1GPz8gMo9hG+ (7 Jun 2015 08:01:41 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 7 Jun 2015 08:01:41 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwDAEBMCVSHiMQ/T3H6F3fqF4YXCY00lL2tGazsAaH4Wi7DiivcCOyLPAYPN7PiU3VmoDWd3sH14eFfc=
Cancel-Lock sha1:wvNDiP3eYeSupjudhQagypc/p7k=
X-NNTP-Posting-Host eJwFwQcBACAMAzBLO+2OHM7wL4GEHhonEQzw8UnFrpowjsu+RLXZ0UmUzMrbDqHeaYOhl3wF7BAY
Mail-Copies-To usenet@PointedEars.de
Xref csiph.com comp.lang.javascript:28017

Show key headers only | View raw


Joao Rodrigues wrote:

> On 06/06/15 03:39, Thomas 'PointedEars' Lahn wrote:
>> Joao Rodrigues wrote:
>>> [typeof null === "object] happens due to a bug in the first version of 
>>> JS [1].
>>>
>>> [1] <http://www.2ality.com/2013/10/typeof-null.html>
>> […] 
>> It could be a bug, but it could also have been *intentional*.  Only
>> Brendan Eich, sole author of the first JavaScript version [2], can say
>> for sure.
> 
> Yes, Brendan once considered the need to fix typeof [1], but rejected
> that proposal stating: "I think it is too late to fix typeof. The change
> proposed for typeof null will break existing code."
> 
> [1] <http://wiki.ecmascript.org/doku.php?id=proposals:typeof>
> 
> In another discussion [2], he wrote: "In general, typeof seems like a
> mess that will be hard to reform sensibly."
> 
> [2] <http://wiki.ecmascript.org/doku.php?id=discussion:typeof>

AISB, in hindsight Eich admitted *design* errors.  That does not prove 
that it was a *bug caused by the code itself* as claimed by Dr. Rauschmeyer, 
and you, based only on his speculation.  He committed a historian’s fallacy, 
and you an /ipse dixit/ one.

>> However, that the ECMAScript Language Specification [3] […] says:
>> […]
>> indicates that it is _not_ a bug.  “null” *has* something to do with
>> objects that other primitive values have not.
> 
> These references only prove that JS was prematurely standardized, making
> necessary corrections more difficult to be implemented.

Assumption, not evidence.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: null and NaN Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-06-05 00:55 -0300
  Re: null and NaN Robert Heller <heller@deepsoft.com> - 2015-06-05 06:57 -0500
    Re: null and NaN Steven D'Aprano <steve@pearwood.info> - 2015-06-07 18:47 +1000
  Re: null and NaN Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-06 08:39 +0200
    Re: null and NaN Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-06-06 23:15 -0300
      Re: null and NaN Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-07 09:59 +0200
        Re: null and NaN Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-06-07 22:30 -0300
          Re: null and NaN Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-10 20:48 +0200
            Re: null and NaN Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-06-11 10:01 -0300
              Re: null and NaN "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-11 15:28 +0200
                Re: null and NaN Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-06-11 11:34 -0300
                Re: null and NaN "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-11 21:07 +0200
                Re: null and NaN Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-06-11 17:29 -0300
                Re: null and NaN "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-11 23:15 +0200

csiph-web