python:
{'x': y} ['x', 'y']
Lua:
{x='y'} {'x','y'}
Also, lots of syntax differences (end, then, do, function, whitespace, elseif, etc). They are similar in that they are dynamic languages. I don’t think anything was particularly inspired by anything else.
Ah, ok, in python {‘x’, ‘y’} would denote an unordered set containing ‘x’ and ‘y’, I assumed a correspondence.
lua unordered sets are a bit more verbose:
{x = true, y = true}
python:
Lua:
Also, lots of syntax differences (end, then, do, function, whitespace, elseif, etc). They are similar in that they are dynamic languages. I don’t think anything was particularly inspired by anything else.
Ah, ok, in python {‘x’, ‘y’} would denote an unordered set containing ‘x’ and ‘y’, I assumed a correspondence.
lua unordered sets are a bit more verbose: