News for hackers. Stuff that matters.
Re:Proposal: Go should have generics by enneff on Thursday April 14, 2016 @02:26AM (#11494657)
As you probably already know, panic/recover/defer are not supposed to be used in the same way as try/catch/finally. They're different features for different purposes.

If you want error handling in Go, use error values.

Re:Proposal: Go should have generics by pcwalton on Thursday April 14, 2016 @02:32AM (#11494678)
Sure. Panic, recover, and defer are in the language, though, and are more complex than exceptions regardless of how they're intended to be used.