Today, I was browsing CR and saw a comment on this answer suggesting that ""
in C# is always better than string.Empty
. I responded that the latter is in fact less ambiguous, with reasons. The person I had responded to lashed out at my examples, and the thread was moved to chat. This part is fine, and understandable. It had gone on too long and formed an argument. Really, they all might have been better deleted.
But I didn't want my main point to be lost. Ambiguity, when programming, is generally something to be avoided when possible. A simplified version of my original comment, now with no link to the person I had originally replied to, and far simpler.
A mod informed me that my comment would soon be deleted for commenting on the quality of an answer, which should, he said, be done by voting. While I agree with the sentiment expressed, my comment did none of that. It simply provided extra information. When I mentioned this, however, that comment was deleted and the comments locked.
Honestly, I have no idea what has gone wrong here. Suggesting a possible improvement or a small amount of additional information is, as far as I know, exactly why we have comments.
Was I wrong in making a comment that ""
is potentially more ambiguous than string.Empty
on an answer?