So I built a quick benchmark. Creating 200 tiny instances with classes built using closures with and without "self" in the closure and with metatables.
Kibita wrote:It's necessary to use the init function?
No, I just like to use an init function so that working with subclasses is easier. The alternative is to keep changing the metatable for an object as it passes through the new functions.