top | item 4308725

(no title)

ncarlson | 13 years 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)

discuss

order

No comments yet.