Hacker News new | ask | show | jobs
by jolmg 2185 days 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.
2 comments

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