Re:Thoughts on the “Guard” Proposal for Go's Error Handling
by vbezhenar on Sunday November 06, 2022 @03:32AM
(#33490454)
With entire standard library that’s not just idiomatic. I would need to write wrappers or just rewrite standard library. It’s plain crazy if you ask me. So yeah, theoretically it’s possible to emulate exceptions, but in reality it’s not.
Go allows you to do that with panic/recover, although it's not quite idiomatic