4 ms·
0 isn't false.
by Avshalom 14y ago
0 isn't false.
- vor_ 14y agoIt's also not true: > if 0 then print "true" end true > 0 == true => false I know why this is the case. But it's a logical inconsistency for users of the language.
- ufo 14y agoStop trolling please. You are advocating for `==` doing type coercion of arguments and that is almost always a misfeature in any language that has that (and the fix usually involves adding an ugly `===` operator after the fact)