Hacker News new | ask | show | jobs
by bpp 3046 days ago
Go has the empty interface, if you really need it.
1 comments

The empty interface is not an unchecked exception, but panic() is. https://golang.org/pkg/builtin/#panic
I don’t actually know Go, but can panic() be caught? If not, it’s not an exception.
With recover(), yes.