News for hackers. Stuff that matters.
Re:Discussion: Reduce error handling boilerplate in Golang u... by rigelbm on Tuesday January 28, 2025 @11:18AM (#42854070)
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.
Re:Discussion: Reduce error handling boilerplate in Golang u... by ikiris on Tuesday January 28, 2025 @11:29AM (#42854226)
There are 0 times I’d want to panic in go code in production services.