3 ms·
> 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 "fa
by 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.