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

Re: NaN semantics

Thread Previous | Thread Next
Tim Conrow
October 9, 2001 11:47
Re: NaN semantics
Message ID:
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 *like* the proposed Perl6 semantics; it's DWIMier. The problem is just the
name collision. Why not 'inval' (for invalid), or some such (badval?). This
would preserve NaN in its IEEE sense for the numerical algorithm crew to use.

I see the next problem, though; profusion of 'false' values. 0, "", undef,
inval, NaN, ... ??? There was a long thread that touched on this in the context
of tristate logic in discussion of and around RFC 263, I think.


-- Tim Conrow                           |

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