News for hackers. Stuff that matters.
Re:It’s strange what people put up with in C# by yyyk on Saturday August 15, 2020 @07:53AM (#24168205)
"All calls can have side effects" - this isn't the case for a "pure" function. What the author wants would make some code worse but is very useful for anything working with immutable collections [IMHO, reading #4 that's what's behind his complaints - working in a functional/immutable style where C# isn't entirely comfortable]. There could be a middle ground where certain function calls do warn/error on such use and most others do not.

There are no comments on this comment yet.