by batista · 14y ago · 0 comments
He might ignore the similarity of panic/recover with Exceptions, but you also ignore:
panic/recover is not used for 99% of exception control in Go. We just check the out-of-band error code and act accordingly.
Panic/Recover is only used for TRULY EXCEPTIONAL situations.
Wish we could say the same for, say, Java's exceptions.
Checked exceptions are superior to Go's error return codes anyway, since they make it easier to bubble your errors up to your caller.