News for hackers. Stuff that matters.
Re:New Date("WTF") – How well do you know JavaScript's Date ... by recursive on Saturday July 12, 2025 @12:18PM (#44543072)
So shall we require checking for matching type of first? It doesn't seem like an improvement to me.
Re:New Date("WTF") – How well do you know JavaScript's Date ... by thfuran on Monday July 14, 2025 @12:48PM (#44562288)
Should a list ever equal seven? Should a float equal a socket? Some comparisons just don't make sense.
Re:New Date("WTF") – How well do you know JavaScript's Date ... by recursive on Monday July 14, 2025 @02:29PM (#44563604)
> Should a list ever equal seven? Should a float equal a socket?

No.

> Some comparisons just don't make sense.

The comparison makes enough sense to me to determine the result.

Re:New Date("WTF") – How well do you know JavaScript's Date ... by bmicraft on Tuesday July 15, 2025 @02:37AM (#44568472)
Even if the result makes some kind of sense, 99% of the time it will be an error in programming and therefore not be useful or safe to continue.