Last night after work, I thought I would play a bit of Skyrim. Nothing too involved, just some inventory management and taking care of a bounty really quickly. Except went I went to take care of the bounty I suddenly found myself fighting a giant, two mammoths, and a named dragon. Yeah....
#Skyrim #gaming #omgwtf
In today's #WTF #Javascript...
-0 and 0 both exist as legal number values because of IEEE 754, OK.
-0 == 0 because of IEEE 754, OK
-0 === 0 because OMG WTF Javascript?
I mean, its right there in https://262.ecma-international.org/6.0/#sec-strict-equality-comparison but seriously, #OMGWTF why?
I guess there's other operations that distinguish -0/0, but Javascript's various comparison operators are an endless fountain of confusion and bugs.
#wtf #javascript #omgwtf #bugs #software