Y
Hacker News
new
|
ask
|
show
|
jobs
by
bpp
3046 days ago
Go has the empty interface, if you really need it.
1 comments
majewsky
3046 days ago
The empty interface is not an unchecked exception, but panic() is.
https://golang.org/pkg/builtin/#panic
link
nardi
3045 days ago
I don’t actually know Go, but can panic() be caught? If not, it’s not an exception.
link
ovao
3045 days ago
With recover(), yes.
link