CoffeeTableEspresso
CoffeeTableEspresso
Currently. only 1 is allowed, but this should be changed. We also should support printing all values in a variadic return.
`a + b` for example, should look in `a` and `b`'s metatables to try to find a `__add` method.
not a big deal, since the test script also checks this, and does so correctly.
Currently, these are mostly untested, need tests that involve: - importing a native package - adding a metatable in an imported package - multiple nested imports
Currently these are only tested in unittests, but they should be fully tested, as with other errors.
Custom error messages for assert, to help with debugging failed asserts
Each invocation of the program should have hash-tables iterate over everything in a different order, both for security and so it's impossible to rely on iteration order.
There is some duplicated code here that should probably be factored out, as well as some idioms that are no longer considered good style.