by tux1968 · 7mo ago · 0 comments
And he does admit you may have to squint, to appreciate the fp capabilities provided by Zig.
For example Swift enums, while in some ways clunky, can do a decent job both as newtypes and as sum types (unlike Java enums, which are a fixed collection of instances of the same class).