Comment by umairnadeem123

3 days ago

the 'error payload' pattern feels like a good compromise between (a) enums and (b) full exceptions, esp when you want to preserve structured context. in zig specifically, do you find yourself standardizing payload shapes per module, or does it devolve into ad-hoc structs? would be interesting to see guidance on when to box/allocate vs keep payload trivially copyable.