4 ms·
This was clarified in the conf talk [1] [2]: error returns should be used at API boundaries, and panic-driven handling only "within" a component. [1] https://w
by knz42 6y ago
This was clarified in the conf talk [1] [2]: error returns should be used at API boundaries, and panic-driven handling only "within" a component.
[1] https://www.youtube.com/watch?v=inrqE0Grgk0&t=15126s https://www.youtube.com/watch?v=inrqE0Grgk0&t=15126s
[2] https://docs.google.com/presentation/d/1WVu4O-ax7punUC2V_XgTA0VqZReToo1sNXA5IaHFqdE/edit https://docs.google.com/presentation/d/1WVu4O-ax7punUC2V_XgT...
- tankenmate 6y agoFor simplicities sake I just use error returns everywhere and then you have a consistent error handling abstraction (and one that scales to boot).