by wfsfw4w44 · 10y ago · 0 comments
it's considered bad practice in go library code to panic(), while it is considered normal error handling to throw an exception in java.
also note that you can catch a panic in go, and use it as some kind of exceptions if you really must.
https://github.com/golang/go/wiki/PanicAndRecover#usage-in-a...
No comments yet.