4 ms·
You can't really easily have useful user defined payloads in errors without implicit allocations. Best way to do it is to pass a payload pointer into the funct
by dnautics 8mo ago
You can't really easily have useful user defined payloads in errors without implicit allocations.
Best way to do it is to pass a payload pointer into the function call. You can put it into an options struct with a default null pointer that noops if you prefer the ergonomics of a kwarg.