Object oriented Lua
Posted Nov 17, 2011 23:33 UTC (Thu) by
man_ls (subscriber, #15091)
In reply to:
Awesome: A window manager that gets out of the way by oblio
Parent article:
Awesome: A window manager that gets out of the way
Apparently Danjou is not happy with metatables as an object-oriented technique. You can read more about it in his 2011 blog (scroll down to "Why not Lua").
All my knowledge of Lua is theoretical, but the explanation in pil (from which you link the older online version) is really messy. I can relate to how JavaScript prototypes are a clumsy solution for a real class system. JavaScript also has other flaws such as the disappearing "this" reference. When you feel that a language is working against you instead of for you, you feel frustrated.
Of course with Python you have the obnoxious self parameter, and Java is not functional (pun intended), but what can you do about it. Obvious sentence of the day: no language is perfect, and choosing the right one for a particular job is really hard.
(
Log in to post comments)