Re:A first look at WebAssembly performance
by strainer on Thursday February 09, 2017 @06:28PM
(#13612028)
local a = {x=0,y=0} --lua table definition
is very similar to
var a ={x:0,y:0} //javascript object definition
Lua is great but that 1-based indexing is very unfortunate - works fine in itself but clashes badly with the norm.
https://www.lua.org/pil/3.6.html
In particular, to initialize a table to be used as a record:
which is equivalent to: and: But I think Guido's right about 0-based indexing:http://python-history.blogspot.com/2013/10/why-python-uses-0...