This code is really complicated, and I'm not sure I've got all the cases right, but the current test suite still passes.
Passing around varargs and handling nil values in the middle of sequences is really clumsy in Lua, especially when interacting with xpcall, which can't pass through extra arguments to the function it calls, which is a convenience that LuaJIT has.
Closes #1.
This code is really complicated, and I'm not sure I've got all the cases right, but the current test suite still passes.
Passing around varargs and handling
nil
values in the middle of sequences is really clumsy in Lua, especially when interacting withxpcall
, which can't pass through extra arguments to the function it calls, which is a convenience that LuaJIT has.