lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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 for
Lua? nil also means not present in a table or no value for a variable. false is a perfectly legitimate boolean value. The idea would be to have a single value like nil and false that would be intended specifically for the job of
saying "an error occurred". One could also make this a type -- e.g.,
recognizing error strings as a particular type -- but that probably opens up
more cases where one would want to do things like store the value in a