4 ms·
if err != nil { panic() } on virtually every single function call gets a bit tedious.
by baalimago 7y ago
if err != nil {
panic()
} on virtually every single function call gets a bit tedious.
- badrequest 7y agoso don't do it?
- ngngngng 7y agoI'll still take that over having no idea what errors could be thrown at which point in my code. Treating errors as values is very verbose, but it's the easiest error handling I've ever tried to wrap my head around.
- marcus_holmes 7y agothis is literally how not to handle errors, so why are you doing it?