zbizu
Legendary OT User
Let's say that I'm making a new method (function) to existing metatable (class), long after the metatable was defined.
Should I register some new method as
What are benefits/downsides of each of them? Is one form better than the other or it's just a matter of preference?
Please don't refer me to documentation, I haven't found anything that would explain it good enough.
Should I register some new method as
function Class:getter() ... end
or function Class.getter(self) ... end
?What are benefits/downsides of each of them? Is one form better than the other or it's just a matter of preference?
Please don't refer me to documentation, I haven't found anything that would explain it good enough.