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:
strict.lua - use modified version of this. without being alerted accesses of unused/unintended variables i'd go crazy.
coroutines - not multithreading capability, continuability. useful simplifying implementation of state machines.
serialization function - indispensable dumping table contents, , persisting tables disk (i use many times when otherwise i'd have reached database).
my wishlist:
visual debugger os x. i'm using print()s now, debugger let me single-step through source files great.
a continue statement. using repeat...until true workaround ugly, , many nested ifs becomes complex , ugly.
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
Post a Comment