Re:It’s strange what people put up with in C#
by fireattack on Saturday August 15, 2020 @12:03PM
(#24169848)
I feel like your example is talking about having the result "in-place" or not, which is an entirely different from what he's complaining (semicolon suspends output).
[ Parent
| on HN ]
Re:It’s strange what people put up with in C#
by chrisandchris on Saturday August 15, 2020 @12:06PM
(#24169878)
> In project programming this hit me this week with a bug:
> value.Format(...);
> return true;
> when I actually wanted
> return value.Format(...);
> This is "implicit information loss" [..]
I don‘t see any semicolon missing.
Re:It’s strange what people put up with in C#
by fireattack on Saturday August 15, 2020 @12:11PM
(#24169918)
Oh sorry, didn't notice you're talking about the first half of point #1.
To be honest, I have no idea what he's expecting with that "return true". How would that be different in any other language?
Re:It’s strange what people put up with in C#
by chrisandchris on Saturday August 15, 2020 @04:55PM
(#24172321)
I think he‘s expecting someStr.Format() to format the value of the object someStr _instead_ of returning a new object containing the fornatted string.