News for hackers. Stuff that matters.
Re:It’s strange what people put up with in C# by fireattack on Saturday August 15, 2020 @07:17AM (#24168046)
Could someone please elaborate his #1 a little bit (as I'm not familiar with C#)?

For the first example, I don't see how it has anything to do with C#.

For the second example, I assume it works like Matlab? By "discard" it just suspends the print, but if you use something like `a = 1;` it still assign 1 to a? If so, I think it's perfect fine for notebook-like interactive shell.

Re:It’s strange what people put up with in C# by xiphias2 on Saturday August 15, 2020 @07:23AM (#24168074)
Being able to discard the return value in an interactive shell is not just ,,fine'', but actually crucial feature (the exact syntax for discarding is less important).

Quite often the rendering of an object would take so much time, that the interactive shell would hang, or so much space that it's not worth to show it.

Re:It’s strange what people put up with in C# by rco8786 on Saturday August 15, 2020 @07:20AM (#24168059)
Same question. It’s two entirely different pieces of code, even returning different types. Is the author upset that C# allows side effect mutations?
Re:It’s strange what people put up with in C# by strogonoff on Saturday August 15, 2020 @07:28AM (#24168097)
Compiler didn't balk at unused return value. (Also by the sound of Format() the function is typed as returning a string, but the author didn't raise that issue.)
Re:It’s strange what people put up with in C# by rco8786 on Saturday August 15, 2020 @07:51AM (#24168193)
I see... seems a rather subjective take (IMO)