3 ms·
I don’t think it’s influenced by js: http://www.lua.org/doc/hopl.pdf http://www.lua.org/doc/hopl.pdf
by SanderSantema 6y ago
I don’t think it’s influenced by js: http://www.lua.org/doc/hopl.pdf http://www.lua.org/doc/hopl.pdf
- jolmg 6y agoMust have been just the impression I got. When I read about it many years ago, I thought it was very much like JS except with a different syntax. I mean, besides the number thing, it uses prototypes for inheritance, and its "tables" are very much like JS objects in the way of how o.x == o["x"] for example, or how arrays are basically built on them (though augmented with a little syntax-sugar). I don't know of other languages that share these characteristics.
- colonwqbang 6y agoLua is older than Javascript so if anything it is Javascript which took inspiration from Lua.
- alwillis 6y agoSeems that Lua and NewtonScript share at least the prototypical inheritance: https://en.wikipedia.org/wiki/NewtonScript https://en.wikipedia.org/wiki/NewtonScript