3 ms·
> Which means that the expression (a==a) might be, in some pathological cases, false. Most languages (including Perl) have at least one case where a==a is not
by aristidb 15y ago
> Which means that the expression (a==a) might be, in some pathological cases, false.
Most languages (including Perl) have at least one case where a==a is not true. (0.0/=0.0) == (0.0/0.0), or any NaN == NaN expression.
- regularfry 15y agoThat's less a language thing than it is an IEE754 float thing, as I'm sure you're aware. It's justified there because it's a genuine propagation of an "undefined" result. I'm not sure that is the sort of protocol user code should be able to opt into by accident.