News for hackers. Stuff that matters.
Re:Table-oriented programming (2002) by stcredzero on Tuesday June 21, 2016 @08:35PM (#11950700)
Couldn't you just call Lua "Table Oriented Programming?" Everything is a table, from which you can construct things like an object system.
Re:Table-oriented programming (2002) by lokedhs on Tuesday June 21, 2016 @11:56PM (#11951458)
Or even APL, where everything is an array (with an arbitrary number of dimensions). For example, adding two arrays together will add the corresponding elements.
Re:Table-oriented programming (2002) by fit2rule on Wednesday June 22, 2016 @03:15AM (#11952087)
Indeed, 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.