You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick bandaid was to just change relevant enums to have a none tag, however, changing them to optional enums is a valid alternative. AFAIK zig does not optimize the following to the same size just yet.
constA=enum {
a,
b,
none,
};
constB=?enum {
a,
b,
}
This approach could make formatting a bit nicer too, instead of needing an explicit if, we could just have a default value if it's null if that's possible through std.fmt.format.
The text was updated successfully, but these errors were encountered:
RIP
@""
.A quick bandaid was to just change relevant enums to have a
none
tag, however, changing them to optional enums is a valid alternative. AFAIK zig does not optimize the following to the same size just yet.This approach could make formatting a bit nicer too, instead of needing an explicit if, we could just have a default value if it's null if that's possible through
std.fmt.format
.The text was updated successfully, but these errors were encountered: