title: What would make it easier to really work with Lua?
body: <p>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 &amp; techniques, third-party modules?</p>
  
  <p>My top 3:</p>
  
  <ol>
  <li><p>strict.lua - I use a modified version of this. Without being alerted to accesses of unused/unintended variables I'd go crazy. </p></li>
  <li><p>coroutines - not for their multithreading capability, but for their continuability. Very useful for simplifying the implementation of state machines.</p></li>
  <li><p>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).</p></li>
  </ol>
  
  <p>My Wishlist:</p>
  
  <ol>
  <li><p>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.</p></li>
  <li><p>A continue statement. Using the repeat...until true workaround is ugly, and too many nested ifs becomes complex and ugly.  </p></li>
  <li><p>A metamethod that's invoked when an existing table member is modified.</p></li>
  </ol>
  
  <p>Any other tips for larger-scale Lua development?</p>