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


Groups > comp.lang.javascript > #28075

Re: null and NaN

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: null and NaN
Date 2015-06-10 20:48 +0200
Organization PointedEars Software (PES)
Message-ID <6931424.mSP66HsXnD@PointedEars.de> (permalink)
References (1 earlier) <mkr6jk$sfb$1@speranza.aioe.org> <1887823.QYRqh1XSJF@PointedEars.de> <ml09gj$mhn$1@speranza.aioe.org> <6583706.BrqscuLzCi@PointedEars.de> <ml2r7v$7ni$1@speranza.aioe.org>

Show all headers | View raw


Joao Rodrigues wrote:

> typeof null == "object" was considered a bug by Brendan Eich - the
> father of JavaScript:
> 
> "We have reason to believe typeof null === “object” *is a bug* that
> could bite real content, from our spidering of the web. We have no such
> evidence in favor of breaking typeof String === “function”, and plenty
> of reason to fear incompatibility. It might be best to leave typeof
> utterly alone and deprecate it, *but I’m still in favor of the null
> bug-fix*.
> 
> — Brendan Eich 2006/03/31 16:34"
> 
> <http://wiki.ecmascript.org/doku.php?id=discussion:typeof>

Much better.  Still _not_ an admission that it is an implementation bug 
caused by the original JavaScript code as Dr. Rauschmeyer and you claimed, 
and not a clear admission that it is a bug at all (“reason to believe”,
not “is”).  But at least properly quoted and cited, and substantiated.

>>>> 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.
> 
> Evidence proven at: […]

Evidence is not proven, but presented.  “Evidence” is synonymous with 
“proof; so “to prove evidence” contains redundancy, at best.

You should improve your understanding of English; that way the number of 
your misconceptions – about what people said and wrote, and what they meant 
when they said and wrote it – might decrease.

-- 
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