With the current Lua environment we have ended up with an imperative programming style in the modules. That invites to statefull objects, which does not create easilly testable libraries.

Do we have some ideas on how to avoid this, or is it simply the way things are in Lua? I would really like functional programming with chainable calls, but other might want something different?

John