Closed
Description
Currently each version of Lua/Luau that Ziglua supports has tests and bindings for that version. This results in a lot of duplicated code (which isn't too bad because Lua is a stable target). But as time has gone on, this leads to a lot of duplicated effort in the following cases
- making large updates to Ziglua, like documentation format
- breaking changes in Zig versions
This is annoying enough that I think it is worth it to find a way to simplify things down to just one of each ziglua.zig
and tests.zig
files.
I attempted this in the past with usingnamespace
"mixins", but it was really messy. I want to attempt this again, but this time using conditional compilation based on the target version of Lua.