3 ms·
> http://www.devsanon.com/rants/stupid-javascript/ http://www.devsanon.com/rants/stupid-javascript/ > Until Javascript removes the stupid from it's language, i
by reificator 7y ago
> http://www.devsanon.com/rants/stupid-javascript/ http://www.devsanon.com/rants/stupid-javascript/
> Until Javascript removes the stupid from it's language, it will remain an embarrassment to developers. Completely inexcusable.
From that link:
> > typeof NaN
> > "number"
> > NaN == NaN
> > false
> > Ok, so the type of Not a Number is a number? And it also does not equal itself? Oh, well. Let’s try equality with other stuff.
Compliance with IEEE 754 is stupidity that is completely inexcusable? That NaN is non-reflexive is certainly irritating but a standards-compliant language is expected to adhere to that.