[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Nil and false in Lua design
- From: Coda Highland <chighland@...>
- Date: Fri, 11 Oct 2013 12:01:40 -0700
On Fri, Oct 11, 2013 at 11:58 AM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> I can't imagine a system in which nil ISN'T falsy...
>
> In the HOPL paper we say that, if things were different, using nil
> in a logical expression should probably raise an error, just like in
> arithmetic expressions.
>
Fair enough, I can imagine nil being NaNish instead of falsy.
/s/ Adam