News for hackers. Stuff that matters.
Re:It’s strange what people put up with in C# by siwatanejo on Sunday August 16, 2020 @01:36AM (#24175480)
> The compiler does warn when you discard a value

The C# compiler doesn't; the F# compiler does.

Re:It’s strange what people put up with in C# by McNerdius on Sunday August 16, 2020 @04:27AM (#24176186)
While not a warning by default, it does inform (IDE0058) in the editor. placing dotnet_diagnostic.IDE0058.severity = warning in your .editorconfig will promote it.
Re:It’s strange what people put up with in C# by merb on Sunday August 16, 2020 @01:49PM (#24179687)
and with warnings as error its also forbidden.