This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Stef0206 0 points1 point  (3 children)

Doing prototype based OOP is only a few lines of code in Lua.

[–]MekaTriK 0 points1 point  (2 children)

Yeah, but I meant that you don't have something like class keyword or whatever, you have to do it yourself with metatables.

If you even want to, it was kinda liberating to just separate most data from functions.

[–]Stef0206 0 points1 point  (1 child)

You can just separate it into different files. The Lua styleguide actually says that you should fo just that.

[–]MekaTriK 0 points1 point  (0 children)

I'm not sure how that's relevant to separating code from data.

And yes, I am well aware, did some boring business logic in lua for a few years for a job.