lua-users home
lua-l archive

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


Kristofer Karlsson wrote:
Are there any use cases where allowing reading t[nil] or t[nan] is useful?

I often rely on the former to avoid checking for nil at every table access, e.g.:

a = b[c[d]]

  Enrico