Comment by 9rx
13 days ago
In C, you mean?
You clearly can in Go. How would you deal with exceptions otherwise? You can even get silly with it:
func main() {
try(func() {
throw("Oops")
}).catch(func(e any) {
fmt.Println("Caught:", e)
})
}
No comments yet
Contribute on Hacker News ↗