lua-users home
lua-l archive

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

On Fri, Jan 09, 2015 at 11:21:40AM -0600, Steven Degutis wrote:
> What would happen if you accessed a key in a table that it doesn't
> contain? Right now it returns nil. What would it do instead if we
> removed nil?

Be like Python, and drive programmers world-over by it being an error
condition, requiring every access to be wrapped in a check or exception

A side effect of this will be a notable increase in balding.