[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Nil and false in Lua design
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 14 Oct 2013 09:22:45 +0200
2013/10/14 steve donovan <steve.j.donovan@gmail.com>:
> Except that there are hundreds of thousands of lines out there that do
> 'if val' assuming that nil evaluates to false. There's really only two
> cases - it's not like C./Python where you have to consider zero as
> well. And languages which think that '' is false rightly deserve our
> scorn.
Python considers empty lists, tuples and dicts to be false too, and
in general seems to have a false element in almostt every type.
It's one of those things that divide people into lovers and haters.