Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: null and NaN Date: Thu, 11 Jun 2015 21:07:50 +0200 Organization: solani.org Lines: 32 Message-ID: References: <1887823.QYRqh1XSJF@PointedEars.de> <6583706.BrqscuLzCi@PointedEars.de> <6931424.mSP66HsXnD@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1434049663 1986 eJwFwYEBADAEA7CXmBbvMPP/CUtorn4DTgeXO6feWUo9WKZ0ltp4wTHRE0skhVflNHRtPx+zEPI= (11 Jun 2015 19:07:43 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 11 Jun 2015 19:07:43 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-User-ID: eJwNy8kBwDAIA7CVMIch6wDJ/iO0+iuM4KQz6PHiqUAsWlgO6B6VaXi6ohb3mI0qizf/VNX7AerqD6c= In-Reply-To: Cancel-Lock: sha1:krqJcJXQtCdebRaS0e7LNbIt1ds= X-NNTP-Posting-Host: eJwFwYcBwDAIA7CXMGE456SM/0+o5CcQlRYe5us7hVPrLz8yL4g3LVI91NZChejYI5zSdpU/J48Q/Q== Xref: csiph.com comp.lang.javascript:28086 Joao Rodrigues wrote: > On 11/06/2015 10:28, Christoph M. Becker wrote: > > Brendan Eich *created* JavaScript in May, 1995 while working at > Netscape, and he has been an active TC39 member in Ecma since 1996. As > such, he is the very authority here. Besides, it is a *fact*, not an > evidence, that Brendan Eich *recognized* publicly the typeof_null_bug [1]. > > [1] Brendan Eich wrote: | We have reason to believe typeof null === “object” is a bug that | could bite real content, from our spidering of the web. So yes, he admits that typeof null === "object" is a bug. However, a few lines above it is written: | From bug fixes where the typeof fixing started, more about the typeof | null === “null” fix: Ah, obviously his comment refers to that. Interestingly, the term "bug fixes" is linked to "Bug fixes to ECMA-262". ECMA-262 is a specification, not an implementation, so obviously, Brendan Eich admitted a *specification* bug. Contrary to that, Dr. Rauschmeyer claims that typeof null === "object" would have been an *implementation* bug in the first version of JavaScript. -- Christoph M. Becker