Re:It’s strange what people put up with in C#
by ragnese on Sunday August 16, 2020 @04:10PM
(#24180816)
Yes, but he's talking about an equivalent of Rust's [must_use].
I actually made a post on the Rust subreddit inquiring why Rust made must_use opt-in instead of opt-out like Swift and, apparently, F#. The reaction was OVERWHELMINGLY negative toward the idea of it being opt-out, which I find very surprising considering the kind of code one typically sees in Rust.
I like the Rust feature of semicolon discarding information. Is that not what is happening here? Really contrived example that he accidentally wrote "return true".