[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Dedicated error value/type for Lua?
- From: Asko Kauppi <asko.kauppi@...>
- Date: Tue, 21 Dec 2004 02:40:49 +0200
is there really need for this? give an example..?
20.12.2004 kello 19:29, Mark Hamburg kirjoitti:
Has any thought been given to introducing a dedicated error value/type
Lua? nil also means not present in a table or no value for a variable.
is a perfectly legitimate boolean value. The idea would be to have a
value like nil and false that would be intended specifically for the
saying "an error occurred". One could also make this a type -- e.g.,
recognizing error strings as a particular type -- but that probably
more cases where one would want to do things like store the value in a