Minimal Viable Zig Error Contexts
Zig's built-in error handling uses strongly-typed error codes but leaves error reporting to the user. The idiomatic approach is to pass a Diagnostics out parameter as a sink to generate human-readable error messages when needed.