Hacker News new | past | comments | ask | show | jobs | submit login

if err != nil { panic() } on virtually every single function call gets a bit tedious.





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.

this is literally how not to handle errors, so why are you doing it?

so don't do it?



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: