Hacker News new | ask | show | jobs
by psykotic 4177 days ago
> IIRC, Lua is even more liberal than Python in that if you mistype a variable name, it will silently give you 'nil' rather than throwing an exception.

Like most things in Lua, that is easy to customize. You can just add an __index metamethod to environment tables. There are various 'strict' modules which do just that.

1 comments

Thats what we love about Lua, it gives us control of the side effects.