News for hackers. Stuff that matters.
Re:It’s strange what people put up with in C# by peacefulhat on Saturday August 15, 2020 @07:08PM (#24173212)
> No language in the 21st Century should have implicit information loss. There are likely C# analyzers to prevent this kind of bug, or you have other choices.

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".

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.