3 ms·
The "bare-bones" nature of Lua is really nice when you need it, so I like that it's an option. But I would guess that most of the time you need Penlight [1], a
by camgunz 7y ago
The "bare-bones" nature of Lua is really nice when you need it, so I like that it's an option. But I would guess that most of the time you need Penlight [1], and I found middleclass [2] to be a pretty good OO library.
After that, just build some abstractions. It's very easy to build DSLs in Lua, or if that's a little too dynamic for you (it is for me), it's very easy to use patterns like Builder or use an OO library and build some class taxonomies.
Anyway, Lua's not batteries included in lots of ways. It does take a little time to build it up for your specific usage. But most users think that's a core feature.
[1]: https://stevedonovan.github.io/Penlight/api/index.html https://stevedonovan.github.io/Penlight/api/index.html
[2]: https://github.com/kikito/middleclass https://github.com/kikito/middleclass
- klibertp 7y agoYes, exactly. There are many libraries of common helpers - I use Microlight, Moses, fun, and std; there's a lot of overlap, but they all have unique features, and there's no real cost to bundling them all, so I do just that.
- camgunz 7y agoWow Moses and fun are bonkers. People should know about these haha.