4 ms·
Yeah, it's quite common in C to just do: if (error) return error; It's the same style as go, but so much more compact. If `go fmt` were to render the erro
by __david__ 7y ago
Yeah, it's quite common in C to just do:
if (error) return error;
It's the same style as go, but so much more compact. If `go fmt` were to render the error boilerplate as
if err { return err }
…instead of the three line boilerplate it insists on, then it would go a long way.
That said, I still support `try()`. It looks good to me, especially coming from Rust.