12 ms·
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)
by ncarlson 14y 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)