the more i learn about #zig the less i like it
yall are pranking me, right? there is actually a way to parameterize an error value and return information about exactly what failed beyond just the type of error, right?
also you CAN have the same name in two different error sets without the compiler assuming they refer to the same thing, RIGHT?
a single global namespace across all compilation units? in 2016? there MUST be something i'm misunderstanding, surely!
also, coming from rust -- why are error values treated specially at all? why can't Zig have a Result<T,E> like Rust does, and let any type be returned as an error?
UPDATE: okay, i just read the docs some more, and having error values able to generate pseudo stack traces is incredibly cool and not really possible in rust without some moderately ugly macros and a LOT of hacking. still tho -- why no tagged union errorsets?




