Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!aioe.org!.POSTED!not-for-mail From: Joao Rodrigues Newsgroups: comp.lang.javascript Subject: Re: null and NaN Date: Thu, 11 Jun 2015 17:29:28 -0300 Organization: Aioe.org NNTP Server Lines: 41 Message-ID: References: <1887823.QYRqh1XSJF@PointedEars.de> <6583706.BrqscuLzCi@PointedEars.de> <6931424.mSP66HsXnD@PointedEars.de> NNTP-Posting-Host: yLT8Q9PPh+zk7Rv6EESYIw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:28087 Christoph M. Becker wrote: > 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. > IMO, Dr. Rauschmeyer is right when using "implementation" instead of "specification" bug because he analyses a code excerpt from the first version of JavaScript which was released by the end of 1995, while Netscape took JS to Ecma in November 1996 (one year later), and the first edition of ECMAScript was released on June 1997. -- Joao Rodrigues