Why Go's Error Handling is Awesome
Go's infamous error handling has caught quite the attention from outsiders to the programming language, often touted as one of the language's most questionable design decisions. If you look into any project on Github written in Go, it's almost a guarantee you'll see the lines more frequently than anything else in the codebase:
if err != nil {
return err
}
Although it may seem redundant and unnecessary for those new to the language, the reason errors in Go are treated as first-class citizens (val...
Read more at rauljordan.com