3 ms·
Must 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, beside
by jolmg 6y ago
Must 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