News for hackers. Stuff that matters.
Re:Error stack traces in Go with x/xerror by monocasa on Tuesday August 24, 2021 @11:03AM (#28289765)
Oh, ok. Yeah that in fact does exist in C and C++ the same way as in Rust. Rust doesn't actually by default require you to consume a return value; a lot of functions are just marked as #[must_use]. C and C++ do the same thing with [[nodiscard]] and __attribute__((warn_unused_result)).

There's a go vet pass as well. https://pkg.go.dev/github.com/golangci/govet#hdr-Unused_resu...

There are no comments on this comment yet.