Create Classes Easier with Cryable

Note: Yes it’s called Cryable. Just don’t have a good name for it tbh.

What Is Cryable?

Cryable is a simple module allowing programmers to create classes much easier.

Can I see examples?

Here you go!

Compared to:

Really, it’s just a matter of personal preference.

Here is the link to the repo.

4 Likes

I prefer the second one, if only you had something different with your method i might have chosen that then

1 Like

While I can’t personally say I will be using it, as I don’t see what it offers above the good old way of making lua “classes”, I have to admit that it looks fairly neat code-wise (first picture) and reading the source code taught me a thing too; return self to chain statements like that. Very simple but very clever! Thanks for sharing!

1 Like