better handling of error set integer type #786
Right now error sets are hardcoded to codegen to a
Ideally, zig would choose an appropriate sized integer based on the total number of error values in the compilation, but the user may do
One idea is to have the error set integer type have a default of
pub const ErrorIntegerType = u8;
Then you'd get a compile error if zig ran out of bits when choosing error values.
The text was updated successfully, but these errors were encountered: