Comment on Discussion: Reduce error handling boilerplate in Golang using '?'Comments−rigelbm1yError handling is really not an issue that needs fixing in Golang. That being said, I wish Golang had an assert key word as a shortcut to "if cond { panic }". A lot of those "if err != nil" in the wild should really just be assertions.−ikiris1yThere are 0 times I’d want to panic in go code in production services.
Comments
Error handling is really not an issue that needs fixing in Golang. That being said, I wish Golang had an assert key word as a shortcut to "if cond { panic }". A lot of those "if err != nil" in the wild should really just be assertions.
There are 0 times I’d want to panic in go code in production services.