3 ms·
0 shouldn't be false. 0 compared to something can be false. Null isn't false. Null compared to something can be false. The entire concept of "falsey" makes
by Espressosaurus 4y ago
0 shouldn't be false. 0 compared to something can be false. Null isn't false. Null compared to something can be false.
The entire concept of "falsey" makes my teeth ache.
Non-boolean expressions in a boolean context is asking for a runtime error.
- anamax 4y ago> Non-boolean expressions in a boolean context is asking for a runtime error. And yet, it doesn't, in strongly-typed languages that define which values are "false" and "true" for types such as strings, sets, dictionaries, and yes, even numbers.