Should editors be changing code in questions (excluding formatting to make a code block)?
I saw two recent cases, linked below, where the code that was originally posted had been changed. In both cases curly brackets { }
were replaced by round ones ( )
. If the original author simply pasted the code into the question, then the curly brackets may have been the cause of any problems, or at least contributed to them.
Instead, shouldn't the editors make a comment or post an answer that says "replace the curly brackets with round ones" (in addition to any other suggestions/solutions) instead of changing the code?
https://gis.stackexchange.com/posts/63751/revisions
https://gis.stackexchange.com/posts/63816/revisions
Edit: One of the reviewers of the suggested edit (the first link) agrees, but was over-ridden. That reviewer makes a good point that future readers may be confused since they don't see the original error in the question. https://gis.stackexchange.com/review/suggested-edits/15488