[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Some small requests for the next release
- From: Mark Hamburg <mhamburg@...>
- Date: Wed, 02 Mar 2005 11:35:14 -0800
The difference between math.nan and nil is that you can perform arithmetic
on math.nan.
Actually, it would be sort of cool to have a NaN equivalent for other
operations. Call it NotAValue and perhaps it's actually the same as NaN. For
example:
x = nil
y = x.field
y is now equal to NotAValue.
That would, however, change the semantics with respect to error detection.
Mark