|
|
|
|
|
by flyinRyan
4844 days ago
|
|
Larry Wall must be one of the most ironic people in the open source world, on purpose or otherwise. He also made a statement like "Lua doesn't have real OO, they just use a hash with a magic function" or something like that.... |
|
I thought Perl 5 had an oversimplified object system till I saw Lua. In Lua, an object is just a hash, and there's a bit of syntactic sugar to call a hash element if it happens to contain code. Thats all there is. They don't even have classes. Anything resembling inheritance has to be handled by explicit delegation. That's a choice the designers of Lua made to keep the language very small and embeddable. For them, maybe it's the right choice.
ref: http://www.perl.com/pub/2007/12/06/soto-11.html
Also IIRC Wall's original Lisp quote starts with him praising Lisp and then ending with this infamous|humorous quip.