Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Building Web Apps in Go. Parent comment
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.
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...