What is the most idiomatic “Zig” way of doing something like that:
pub const Error = error {
FAILED_TO_PARSE: Info,
UNDEFINED_SYMBOL: []const u8,
NO_OPERAND: Loc,
INVALID_TYPE: []const u8,
};
What is the most idiomatic “Zig” way of doing something like that:
pub const Error = error {
FAILED_TO_PARSE: Info,
UNDEFINED_SYMBOL: []const u8,
NO_OPERAND: Loc,
INVALID_TYPE: []const u8,
};
Error sets cannot have extra values.
To overcome the limitation you can either:
oh, that’s understandable. Thank you