Recently, I posted an answer to an old question where my main goal was to show that a method that was posted years ago (.index()
) is the "best" one using a benchmark. Now, the question already had two answers (1, 2) that included a benchmark and both advocated for the same method (which I didn't fancy). I found their benchmarks lacking because they didn't include index()
, even though it was already the fastest method in the Python version they used. Given that the OPs initially advocated for a different method, I felt that re-doing the benchmark by including .index()
and editing their answers with it would change the original meaning of the answers, so I went ahead and posted my own answer.
Yesterday, a user was initially skeptical about the accuracy of my answer but after being convinced of it, he pointed out to me that instead of posting my own answer, I should have edited the top answer. Later, he went ahead and edited the new benchmark (that was a big part of my answer) into an older answer (this is the revision before his edit and this is after). After this edit, the first part of my answer became redundant, so I'm not sure what I should do with it.
Anyway, the reasoning he gave for his edit was
I don't know if you've ever edited wikipedia but to me stackoverflow is like that. It should just give the correct answer to my question quickly, it doesn't matter who wrote what.
I agree with this sentiment actually as scrolling all the way down to find important information is not ideal but I'm not sure if such edits follow Stack Overflow guidelines, so I'm kind of conflicted.
Even though I used a specific example, my question is more general. If old answers are missing an important detail/information, how should the missing information be conveyed? Should it be edited into old answers by other users or should it be included in a new answer?
Note that this question is not about modernization edits; it's about editing in important information that the OP had neglected to include in their answer.