3 ms·
So what should be the value of `"false" == true`?
by recursive 1y ago
So what should be the value of `"false" == true`?
- bmicraft 1y agoundefined or TypeError would be suitable.
- recursive 1y agoSo shall we require checking for matching type of first? It doesn't seem like an improvement to me.
- thfuran 1y agoShould a list ever equal seven? Should a float equal a socket? Some comparisons just don't make sense.
- recursive 1y ago> 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.
- bmicraft 1y agoEven 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.