3 ms·
> If it's easy then why does nobody do it? ;) People do this all the time with exceptions. > One line just turned into four The Go version has one line of di
by Capricorn2481 2y ago
> If it's easy then why does nobody do it? ;)
People do this all the time with exceptions.
> One line just turned into four
The Go version has one line of difference?
> At that point even Go is more ergonomic and less verbose
You can't compare it to your Go version because you have to write the error check at every single level, whereas once I throw that exception I can catch it wherever I want. Obviously the Go version will have much more code just around one error.