Hacker News new | ask | show | jobs
by knz42 1979 days 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

[2] https://docs.google.com/presentation/d/1WVu4O-ax7punUC2V_XgT...

1 comments

For simplicities sake I just use error returns everywhere and then you have a consistent error handling abstraction (and one that scales to boot).