[MLton-user] Re: Mostly MLton performance. (Stephen Weeks)
John Reppy
jhr@cs.uchicago.edu
Wed, 29 Mar 2006 07:44:49 -0600
On Mar 29, 2006, at 5:00 AM, mlton-user-request@mlton.org wrote:
> Message: 1
> Date: Tue, 28 Mar 2006 18:38:22 -0800
> From: Stephen Weeks <sweeks@sweeks.com>
> To: johan.gronqvist@gmail.com
> Cc: MLton-user@mlton.org
> Reply-to: MLton-user@mlton.org
> Subject: [MLton-user] Mostly MLton performance.
>
>
> Real.isNan is implemented with
>
> fun isNan r = class r = NAN
Why not just use the following?
fun isNan r = (Real.!=(r, r))
- John