Comment Re:Huh? (Score 1) 383
Thanks, I'm glad you liked it!
Thanks, I'm glad you liked it!
but in fact what it really does is:A == B tests whether A and B are equal.
That behaviour is unnecessarily complicated. I claim the design choice was poor, and the widespread misunderstanding and misuse of the == operator provides some empirical support for that claim.A == B tests whether A and B are equal or if either of A or B is a number then it tests whether they have the same numeric value, where strings containing common formats for integers and floats are converted to the corresponding numeric value, strings not containing recognizable numbers are converted to zero, and undefined values are converted to zero.
The value of a program is proportional to the weight of its output.