3 ms·
"Bubbling up" is common parlance for "exit this function early and return the error we got from our callee" (or "wrap the error we got from our callee and retur
by mcronce 4y ago
"Bubbling up" is common parlance for "exit this function early and return the error we got from our callee" (or "wrap the error we got from our callee and return that")
In Go, this looks like
thing, err := call()
if err != nil {
return nil, er
}
In Rust, this looks like
let thing = call()?;
- 0xdeadb00f 4y agoPeople keep telling me this is common nomenclature but I have never heard of it until today.
- NavinF 4y agohttps://xkcd.com/1053/ https://xkcd.com/1053/