Zig has @compileLog which is generally speaking abrupt your function execution even it is fully correct… Why do we need to receive “unused parameter” compilation error for function which is because of @compileLog won’t compile anyway. I propose to remove such non-essential errors inside functions which still have @compileLog

alanza July 18, 2026, 2:15pm 2

i’m not an expert, but i believe the compiler can determine “unused parameter” errors, iirc, just from the AST of your program with no analysis needed. this is great, because it means those compile errors can be found extremely quickly. your proposal would require delaying them till later in compilation, slowing down the developer feedback loop.

pasta July 18, 2026, 4:10pm 3

This feels like an XY problem. The root issue being unused parameter errors, which can easily be avoided by using features that “autofix” those using ZLS.