Hacker News new | ask | show | jobs
by SanderSantema 2185 days ago
I don’t think it’s influenced by js: http://www.lua.org/doc/hopl.pdf
1 comments

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.
Lua is older than Javascript so if anything it is Javascript which took inspiration from Lua.
Seems that Lua and NewtonScript share at least the prototypical inheritance: https://en.wikipedia.org/wiki/NewtonScript