Quote:
Originally Posted by Grue
man I wonder how many millions of man hours have been wasted specifically fixing bugs raised by the fact that number zero in javascript evaluates falsy while every other number including negatives is the opposite..
I dunno, this is actually very common and is present in many languages.
I just spot checked python, C, C++, tcl, perl. It appears that Java does not really allow implicit casting of ints to bools, but everywhere I've looked that people are using ints for bools in java, they basically suggest using "myint != 0"
So... I would say that it's not really a javascript problem. I am not sure that it's a huge problem or waste of time at all, really.