What would make it easier to really work with Lua? -


i love lua, using more , more projects primary (not embedded) language. current project approaching 10,000 lines , end @ 15,000 lines. have found useful when developing in lua @ scale? have bumped head against, , solutions have found? i'm thinking development tools, language features & techniques, third-party modules?

my top 3:

  1. strict.lua - use modified version of this. without being alerted accesses of unused/unintended variables i'd go crazy.

  2. coroutines - not multithreading capability, continuability. useful simplifying implementation of state machines.

  3. serialization function - indispensable dumping table contents, , persisting tables disk (i use many times when otherwise i'd have reached database).

my wishlist:

  1. visual debugger os x. i'm using print()s now, debugger let me single-step through source files great.

  2. a continue statement. using repeat...until true workaround ugly, , many nested ifs becomes complex , ugly.

  3. a metamethod that's invoked when existing table member modified.

any other tips larger-scale lua development?

a continue statement. using repeat...until true workaround ugly, , many nested ifs becomes complex , ugly.

have loop body function call; return becomes continue.

a metamethod that's invoked when existing table member modified.

you can implement using proxy table b stores of actual data table - newindex/index metamethods on intercept writes/reads , modify/lookup table b instead. since never gets written it, writes hit newindex.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -