Zig: Compile Errors for Unused Things
github.com
github.com
The one thing I've noticed missing from Zig's implementation is separating those diagnostics into different categories, aka errors/warnings. I can't fault them too much for the oversight since the language isn't 1.0 yet, after all. But I do look forward to them finishing this feature!
Otherwise it leads to absurd situations where some code gets commented to avoid errors caused by unused things, which defeats the point of the lint.
When coding in Rust, I extensively use warnings as a way to know what remains to be done before my code is done.
Treating all warnings as errors all the time so as to address people who would ignore warnings is overtailoring the language for beginners at the price of ergonomics for experienced programmers.