Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27987
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: null and NaN |
| Date | 2015-06-05 00:55 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mkr6jk$sfb$1@speranza.aioe.org> (permalink) |
| References | <null-20150602191404@ram.dialup.fu-berlin.de> |
On 02/06/2015 14:28, Stefan Ram wrote: > Sometimes, it has been questioned whether it was wise to > implement > > typeof null > "object" > It happens due to a bug in the first version of JS [1]. > . However, I just became aware that this is echoing a > similar case: > > typeof NaN > "number" > > . NaN says its »Not a Number«, yet typeof says it is a > number! This case is something else. I'd rather prefer the joke: "NaN stands for Not a NaN" [2]. [1] <http://www.2ality.com/2013/10/typeof-null.html> [2] <http://ariya.ofilabs.com/2014/05/the-curious-case-of-javascript-nan.html> -- Joao Rodrigues
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll 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