Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rust vs Go: A Hands-On Comparison. Parent comment
some_operation(&arg) .with_context(|| format!("Some operation failed: {arg}"))?;
some_operation(&arg) .context("Some operation failed")?;
some_operation(&arg)?;
Whether that's better or worse than the Go snippet is something I'll let the reader decide.
There are no comments on this comment yet.
Whether that's better or worse than the Go snippet is something I'll let the reader decide.