5 ms·
> [...] There are many class libraries available for lua. Just pick one. [...] Alternatively, embrace the prototype-based programming and just... don't add cla
by CraneWorm 5y ago
> [...] There are many class libraries available for lua. Just pick one. [...]
Alternatively, embrace the prototype-based programming and just... don't add classes.
- pwdisswordfish8 5y agoIn practice though, is prototype-based inheritance useful for anything other than implementing your own class system on top of it?
- CraneWorm 5y agoI hold an opinion that, if you use the prototype-based approach, you should avoid inheritance like the plague ;)
- pwdisswordfish0 5y agoYou should avoid it whether prototypes are involved or not.