After missing a pre-existing answer and providing a duplicate by accident, should one delete the duplicate? This came up due to the following example:
I posted this answer to this question, not realizing the fact that essentially the same answer had been provided here. This had to do with why break
statements tend to be necessary in different languages' switch
syntaxes, and though I saw where several people mentioned matching multiple cases and handling them the same way, I had missed the one answer that mentioned handling case x
by using code that applies only to that case, followed by code in a fall-through that matches both case x
and case y
.
In general I would think the most appropriate thing to do in cases like this, if no votes have been cast, is to just delete one's duplicate answer. But if the answer has been upvoted at least once, which kind of response would be more appropriate on Stack Exchange sites:
- Just leave it and keep the upvote. It's not the end of the world.
- Delete it immediately.
- If one doesn't have the
disciplined
badge already, they should see if they get two more upvotes, then delete the answer and game the badge.