News for hackers. Stuff that matters.
Re:JavaScript Errors: An Exceptional History by purple_ducks on Tuesday November 05, 2019 @02:01PM (#21455482)
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.

Re:JavaScript Errors: An Exceptional History by reificator on Tuesday November 05, 2019 @06:03PM (#21457757)
> 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.

Re:JavaScript Errors: An Exceptional History by mr_toad on Tuesday November 05, 2019 @06:27PM (#21458000)
Makes sense to me. 1/0 is not the same as 2/0, etc.