|
|
|
|
|
by kristoff_it
1978 days ago
|
|
The compiler infers the errors in an error set even if you don't declare it explicitly (e.g. when returning `!void`). This means that you can use a switch statement to have the compiler tell you what cases it contains. There's also ZLS, a language server implementation for Zig that I believe can help with that (or if not today, it will in the future). |
|