I love Lua, using it for more and more projects as the primary (not embedded) language. My current project is approaching 10,000 lines and will probably end at about 15,000 lines. What have you found useful when developing in Lua at that scale? What have you bumped your head against, and what solutions have you found? I'm thinking about development tools, language features & techniques, third-party modules?
My top 3:
strict.lua - I use a modified version of this. Without being alerted to accesses of unused/unintended variables I'd go crazy.
coroutines - not for their multithreading capability, but for their continuability. Very useful for simplifying the implementation of state machines.
serialization function - indispensable for dumping table contents, and for persisting tables to disk (I use this many times when otherwise I'd probably have reached for a database).
My Wishlist:
Visual debugger for OS X. I'm using print()s now, but a debugger that would let me single-step through source files would be great.
A continue statement. Using the repeat...until true workaround is ugly, and too many nested ifs becomes complex and ugly.
A metamethod that's invoked when an existing table member is modified.
Any other tips for larger-scale Lua development?