3 ms·
In another thread, dchest points out http://news.ycombinator.com/item?id=3360369 http://news.ycombinator.com/item?id=3360369 that Lua 5.0 allows mixed-typed key
by lysium 15y ago
In another thread, dchest points out http://news.ycombinator.com/item?id=3360369 http://news.ycombinator.com/item?id=3360369 that Lua 5.0 allows mixed-typed keys, too, so that may work.
- obtu 15y agoYes. You can specialise the implementation without breaking semantics. Lua, PyPy, and some Javascript VMs are examples of that.