3 ms·
What is annoying with errors in Zig?
by ngrilly 3y ago
What is annoying with errors in Zig?
- metaltyphoon 3y agoI don't think they can carry information.
- alwaysbeconsing 3y agoThey seem to be specifically referring to the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-1001115727 https://github.com/ziglang/zig/issues/335#issuecomment-10011...
- Modified3019 3y agoYeesh, that's good to know. With the dev response basically doubling down on ideology and ignoring reasonable protest, that's definitely an ecosystem to not sink time into.
- Gibbon1 3y agoMy thought about unused variable is the compiler should assume someones trying to debug something and not optimize them out.
- ngrilly 3y agoYou're right. I read too fast. Coming from Go, I'm used to errors on unused local variables, and like that Zig does the same.