3 ms·
I just pass a "diag" struct to functions that may need to return an error context. It was weird at first but then it dawned on me how much less friction I exper
by deagle50 3y ago
I just pass a "diag" struct to functions that may need to return an error context. It was weird at first but then it dawned on me how much less friction I experienced being able to create error variants on the fly. There's also something to be said for seeing all (or most) of the relevant logic inline vs jumping around trying to make sense of separate definitions.