4 ms·
I think the distinction between expected and unexpected errors can easily fall through the cracks and writing code in a way that an unexpected error doesn’t bre
by _benj 4y ago
I think the distinction between expected and unexpected errors can easily fall through the cracks and writing code in a way that an unexpected error doesn’t break everything is quite powerful.
Golang makes it easy to ignore errors that can be ignored and defer/recover provide a way to implement a way to “let it fail”
There’s even an implementation of supervisor trees for Go [0] :)
[0] https://github.com/thejerf/suture https://github.com/thejerf/suture
- rad_gruchalski 4y agoThis would be my go to for anything _supervisor_ in golang: https://github.com/asynkron/protoactor-go#supervision https://github.com/asynkron/protoactor-go#supervision.