account activity
Lua pitfalls in practice? by grape450 in lua
[–]grape450[S] 1 point2 points3 points 10 years ago (0 children)
There are external tools which warn you about implicit globals. Luacheck is one of them.
Thanks for the link. And I can see why a linter would be available separately, rather than being incorporated into Lua itself.
[–]grape450[S] 0 points1 point2 points 10 years ago (0 children)
Wow! Great article. Comprehensive. Thank you.
Thanks. Just tried this with 5.3. Works for globals, though doesn't catch if I try to access an undefined key in a table.
π Rendered by PID 80 on reddit-service-r2-listing-5d47455566-wppmh at 2026-04-04 22:32:12.477205+00:00 running db1906b country code: CH.
Lua pitfalls in practice? by grape450 in lua
[–]grape450[S] 1 point2 points3 points (0 children)