4 ms·
option types are spreading pretty well these days. Zig, for instance, has them, even as a low level C replacement language.
by gameswithgo 7y ago
option types are spreading pretty well these days. Zig, for instance, has them, even as a low level C replacement language.
- dualogy 7y agoEven C itself has unions since forever. Optionals, enums, bools, err-or-result constructs are (highly ergonomic) sugars atop of unions.