[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Different shades of false
- From: Javier Guerra <javier@...>
- Date: Thu, 2 Mar 2006 09:38:24 -0500
On Thursday 02 March 2006 9:32 am, Alen Ladavac wrote:
> In the original Lua, 0 was logically true, because the only logically false
> value was nil. That made sense. But since the introduction of the boolean
> type in Lua 5, there is a slight mess in what is actually logically false,
> causing me to reconsider on the idea of 0 being logically true.
i don't feel too strongly about this, but if anythng, i would prefer it to be
the other way around: the boolean type should have only one value: true.
false would be a synonymous with nil.
Description: PGP signature