[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: simple question about NaN and FP exceptions
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 21 Feb 2011 16:38:01 +0100
> But the Lua way is to show the test for NaN explicitly your code.
Would it be too much compatibility breaking or performance impacting
to have NaN evaluate itself to boolean false instead of true by
This would a) make NaN checking much easier, arithmetic operations
dont return 'nil' or 'false' anyway. b) NaN could be a wonderful
dropin for people wanting to say 'isset but nil' in a
first-class-value-way for tables/lists.
Kind regards, Axel