2

I've seen a number of questions in the review queues, where someone has updated a question to reflect changes in one of the technologies used. For example, the case I've just seen is someone changing an old code snippet to work in Swift 3.0.

It seems there are two things that people do:

  1. Add a separate code block, like this one: enter image description here

  2. Just change the code so that it works with the latest:

enter image description here

The first seems better because it doesn't risk taking away information that the original answerer gave. But I think a new answer is still probably more appropriate. Are there guidelines on this?

6
  • FWIW, this similar edit, which you voted to reject, was just approved by the author of the post
    – user4639281
    Commented Dec 31, 2016 at 3:51
  • @TinyGiant That edit is of the first kind, so it would be one where I would also be OK with approving it. But you can't always ask the author what he wants, and this one case doesn't mean it should be applied as a rule. I think I'm leaning towards rejecting type 2 (and suggesting they leave another answer), and accepting type 1 if they don't need to duplicate too much code. What do you think?
    – Peter Hall
    Commented Dec 31, 2016 at 3:58
  • So, for example this one I think can be rejected because it conflicts with the author's original intent. Although.. the author does state 1.6 and the edit links to documentation that says author's original code was deprecated in 1.5.10 and won't work in 1.6. Still, I think this is better as a comment.
    – Peter Hall
    Commented Dec 31, 2016 at 4:00
  • Edits to questions, or edits to answers? (This question's title doesn't seem to match its body.) Commented Dec 31, 2016 at 4:21
  • 3
    That's why I said "FWIW" (for what it's worth). See also: Are edits that insert Swift 3 code into existing Swift 2 answers acceptable? That seems to indicate consensus towards rejection of both examples, if the edit comment on the second is correct.
    – user4639281
    Commented Dec 31, 2016 at 4:23
  • Thanks, that discussions is useful.
    – Peter Hall
    Commented Dec 31, 2016 at 5:21

0

Browse other questions tagged .