News for hackers. Stuff that matters.
Re:Building Web Apps in Go by wfsfw4w44 on Monday March 28, 2016 @09:00AM (#11373967)
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...

There are no comments on this comment yet.