Ah, thanks! I tried converting that example to Zig:
Is that the idea?
You can do the same thing wrapping integers with structs, but enum makes it slightly more concise?
Is that the idea?
You can do the same thing wrapping integers with structs, but enum makes it slightly more concise?
I think in Zig for new types you'd use enums for ints and packed structs for more complex types.