Comment

Comment by steveklabnik

We do the same thing in Rust, but I think that characterizing this as UB is misleading, personally. We created a new category, "program error", for this, to distinguish from UB proper.

I'm not sure if Zig inherited the defined/implementation defined/undefined hierarchy from C and C++ though.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton