3 ms·
WHY? "Hey, this very precise literal has a passing resemblance to another data type, so let's convert it to that, but since it's got too many digits and resemb
by ctdonath 15y ago
WHY?
"Hey, this very precise literal has a passing resemblance to another data type, so let's convert it to that, but since it's got too many digits and resembles another data type at this point, let's just throw away some of the data, make the conversion, THEN perform the equality comparison." Yeah, that makes sense. FAIL.
- kba 15y agoI'm not defending PHP. I'm not saying it makes sense. I'm just saying that's what's happening.