3 ms·
> try! isn't too hard to emulate in Go, simply write a wrapper that panic()'s on and error and passes the first value through. That isn't what try! does in Rus
by Jweb_Guru 12y ago
> try! isn't too hard to emulate in Go, simply write a wrapper that panic()'s on and error and passes the first value through.
That isn't what try! does in Rust. You are thinking of unwrap().
- falcolas 12y agoYou're right. Thanks!