|
Timothy Baldridge wrote:
Actually, I'm not arguing that nil == 0, but asking if tonumber(nil) == 0. i.e. if you move nil into the numeric domain, should it's value be 0...Ahhh, the classic argument. Nil and zero are not the same, zero represents the lack of quantity of something being counted, nil represents the lack of data. In some areas of computing (such as the database work I do) this is a major difference. In my mind, tonumber(nil) should return nil.