So I completely understand removing comments on discussions such as "why am I getting downvotes" and issues with the code that are fixed through edits.
What I don't understand is removing comments that point out additional bugs in the code.
I only caught this because whenever I get an upvote I got back to the question to check out if there are still any active conversations. I'd rather not post the question itself to avoid a witch hunt or a meta effect, but the offending question asked about a single bug in a C++ loop related to undefined behavior.
OP's code also contained a myriad of additional bugs along side the thing that was causing the issue OP was worried about, (memory-leaks, deleting things that should not have been deleted, and an overall methodology which was just plain wrong C++). There were pointed out in the comments on the question: the appropriate place, as the comments did not answer OP's question. OP never edited these bugs out the question.
A vacuumer came along and removed ALL the comments to the question...I can see a beginner looking for answers seeing that code and being led down the wrong path because the flags of "This code is bad for more reasons than OP thought" had all been removed. What is the correct thing to do in this case? My options are, as I see it:
- Downvote and move on and hope other people do the same
- Edit OP's post
- Add the additional bugs to my answer