DEV Community

Discussion on: Go and Rust error handling

Collapse
 
buymymojo profile image
BuyMyMojo

Would that be done like this?:

if let Err(Reason) = somefunc() {
 // handle error?
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
chayimfriedman2 profile image
Chayim Friedman

Or match.