3 ms·
Couldn't you just call Lua "Table Oriented Programming?" Everything is a table, from which you can construct things like an object system.
by stcredzero 10y ago
Couldn't you just call Lua "Table Oriented Programming?" Everything is a table, from which you can construct things like an object system.
- lokedhs 10y agoOr even APL, where everything is an array (with an arbitrary number of dimensions). For example, adding two arrays together will add the corresponding elements.
- fit2rule 10y agoIndeed, you can use Lua tables within an object-oriented paradigm, or you can use them for other things as well. The power is in metatables, which allow you to alter the behaviours of table operations according to your needs. So in that sense, Lua allows table-oriented programming indeed.