develooper Front page | perl.perl6.language | Postings from October 2001

Re: NaN semantics

Thread Previous | Thread Next
Graham Barr
October 9, 2001 05:07
Re: NaN semantics
Message ID:
On Tue, Oct 09, 2001 at 04:39:47PM +1000, Damian Conway wrote:
> Sigh. I *do* see your point of view (Laziness), but I still have immense
> difficulty with the notion that:
>         $x == NaN
> doesn't return true if $x contains NaN.

I agree. The difficulty I have is that it is the comparison that IEEE
define to return false. Which means

  if ('cat' != 'dog')

would not yeild the same result as

  unless('cat' == 'dog')

Which I think would lead to a lot of confusion when debugging.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About