I remember Roberto said they were considering a table.clear function ( http://lua-users.org/lists/lua-l/2013-11/msg00669.html ) , we can use table.clone(tbl, {}) to instead of it.