kota's memex

Lua is garbage collected and uses nil to represent variables which have not been defined. It represents the absence of a value and can be manually assigned.

t = "a string"
t = nil -- Undefines t.

-- Undefined variables return nil. They do not produce an error!
foo = true
foo = anUnknownVariable -- Now foo = nil.