by paulgb · 8y ago · 0 comments
The non-truthiness of 0 is something present in many languages.
EDIT: `!0`
int main (int argc, char* argv[]) {
return 0;
}The concept of using 0 to mean false is not new to javascript is what I was getting at.
Also, this isn't a javascript problem; this is a problem of trying to be too clever and not understanding implicit conversion, which happens in many languages.
And that doesn't happen in many decent languages. That is, languages with strong typing.