3 ms·
Ah yes, very good examples of how Go's error handling needs improvement.
by sdegutis 13y ago
Ah yes, very good examples of how Go's error handling needs improvement.
- NateDad 13y agoUh, no. You shouldn't use panic for error handling. You should basically never use panic unless you have some small bit of recursive algorithm inside your package that you want to be able to easily unwind. For general error handling you should only ever use error returns.