Hacker News new | ask | show | jobs
by ncarlson 5067 days ago
It's amazing how similar Javascript and Lua are. For example, the following three statements are equivalent:

    > JS:   { x : 2 + 3, y : 9 }["x"]  * (11 + 23)
    > Lua: ({ x = 2 + 3, y = 9 })["x"] * (11 + 23)
    > Lua: ({ x = 2 + 3, y = 9 }).x    * (11 + 23)