Dangerous usage of unreachable in std/posix.zig code

Note this decision: handle impossible errors from the kernel with error.Unexpected instead of unreachable · Issue #6389 · ziglang/zig · GitHub

The only reason I’m holding off on doing this is that Andrew is currently working on std.Io and I don’t want to step on his toes. Once we’re on the other side of that, I’ll implement the change.

11 Likes