12
\$\begingroup\$

This is related to What are our answer editing guidelines?, but about an edit with a brief comment:

Switched to python.

To me that makes sense, since the code looked like a mix of python and a c-based language. Others felt that edit shouldn't have been approved.

Rolfl's answer to the aforementioned question suggests:

The solution is that code suggested edits, if they have an edit comment that makes logical/obvious sense, should just be approved. If there's a problem, well, the answerer whose code was edited will get a notification of the edit, and they can easily roll it back if it's wrong.

It seems that the consensus is that answers should typically contain code in the same language as the question.

Should we just reject the suggested edit, and optionally downvote and/or comment instead?

\$\endgroup\$

1 Answer 1

10
\$\begingroup\$

Know what you are doing

If you know the language in question just like you know your best friend, then I'd say feel free to edit and correct it.

In this particular case the code was a mix of Python and some C-style language, so the edit makes perfect sense and I would have also voted to approve.

Think about what the best value for the site is. Don't just follow "rules" without thinking about why (i.e. don't decline the edit just because there might be a rule that says you should - think about why).

As rolfl said:

The solution is that code suggested edits, if they have an edit comment that makes logical/obvious sense, should just be approved.

I think this edit is one that makes obvious sense.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .