Skip to main content
1 of 3
user
  • 5.7k
  • 17
  • 25

Editing non functional code into .. non functional code. Editor seems unaware of the language syntax

A user has attempted to improve some answers (1, 2) by editing their code. Before the editing took place, the code wouldn't work (e.g. it would raise IndentationError) or wouldn't be formated as code at all.

After the edit, the code still does not work because the indentation is incorrect.

No harm was done through those edits (I haven't checked all his python edits), but it could have an effect if a user messes up existing indentation because he wasn't aware that Python indentation is meaningful to the compiler and not just a matter of style.


Should a custom flag be raised when a user's code-edits indicate he is unaware of the specific language details, so that a mod can investigate further and/or the user is notified?

user
  • 5.7k
  • 17
  • 25