News for hackers. Stuff that matters.
Re:Thoughts on the “Guard” Proposal for Go's Error Handling by kgeist on Sunday November 06, 2022 @01:36AM (#33489854)
>Just let me throw exception, collect entire stacktrace, let me catch exception whenever I want or dump stacktrace if nobody caught it and goroutine died.

Go allows you to do that with panic/recover, although it's not quite idiomatic

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.