Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
baalimago
· 7y ago · 0 comments
if err != nil { panic() } on virtually every single function call gets a bit tedious.
Comments
[–]
ngngngng
7y ago
I'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 ago
this is literally how not to handle errors, so why are you doing it?
[–]
badrequest
7y ago
so don't do it?