|
|
|
|
|
by wfsfw4w44
3742 days ago
|
|
the most obvious difference is a go-panic and exceptions are used in different scenarios. 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... |
|