A Sneaky Golang Bug
dustri.org
dustri.org
Lots of other languages take the same approach. Rust’s must_use attribute is basically the same as nodiscard.
It’s a nice way of solving the problem imo.
[1] https://en.cppreference.com/w/cpp/language/attributes/nodisc...