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, it wi
by purple_ducks 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.
- 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.
- mr_toad 7y agoMakes sense to me. 1/0 is not the same as 2/0, etc.