Hacker News new | ask | show | jobs
by thement 747 days ago
The problem with "lack of classes" is that every non-trivial program makes its own implementation of something-like-classes, but built on top of metatables.

So before you can start hacking on anything in Lua, you have to first understand the class system, which may or may not be documented.

1 comments

And I avoid such code. Not everything has to be OO.
You can use functional versions which compile to Lua code, like Fennel https://fennel-lang.org/