daurnimator
October 2017
Other projects tend to have one (or two) missing pieces:
Lua is quite close to Javascript in terms of language features:
-DLUA_INT_TYPE=LUA_INT_INTSymbol keys
WeakMaps only allow objects (and functions) as keys (excluding null)WeakMaps are not iterablenextnextTables are implemented as not just a key => value map, but also as a doubly linked list. When you remove an item from a table we:
nextTo iterate (next), we:
Map-like methods
.get, .set, .has, etc..invoke if you want variable return: returned as Arraylua_atnativeerrorlua_toproxy and lua_isproxy)https://fengari.io/
__gc metamethod__mode is ignored)collectgarbage and lua_gc mostly unimplementableio lib
os.remove, os.rename, os.tmpname, os.execute__gc