4 ms·
Lua. Its main selling points are that it's small, simple to embed and easy to learn. You also won't find many interpreted languages that can even come close to
by DarkWiiPlayer 7y ago
Lua. Its main selling points are that it's small, simple to embed and easy to learn. You also won't find many interpreted languages that can even come close to match its speed.
Also multiple returns. I find it hard to believe that nobody else thought of that, but it's just not something any other language has.
- jstewartmobile 7y agoGolang does multiple returns. Can also accomplish the same in PHP by returning arrays and using list() syntax as the lvalue.
- Hamuko 7y agoHow do Lua and Go differ from returning a tuple in Python?
- jstewartmobile 7y ago# python, fn() returns tuple (college, student, type_ofcollege) = fn() # php, fn() returns array list(college, student, type_ofcollege) = fn() # go, fn() returns multiple values college, student, type_ofcollege := fn() # lua, fn() returns multiple values college, student, type_ofcollege = fn()
- __warlord__ 7y agoFor Python, a tuple is not necessary when returning multiple values, you can use the same syntax as lua. Edit: I stand corrected, indeed, Python returns a tuple.