Hacker News new | ask | show | jobs
by samatman 1897 days ago
I've found this to be completely solved by using the strict mode provided by penlight.

It becomes a shallow runtime bug, so it isn't a compiler failure. But I've literally never had a misspelled global stick around for long enough to qualify as a "bug" rather than a mistake. I have polluted the global namespace once or twice by assigning to a new misspelled global in the outermost chunk, which is a little more bugesque, but very seldom.

1 comments

Neat. I'll try to remember that the next time I need to work with Lua.