What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

In My for statement keeps repeating even though I set a limit? part of the code written by the OP has been removed, but there is an answer that is telling the OP something was wrong in that part too.

Is it correct to remove the not necessary code, in this case?
Should the question be changed to contain the original code (even if better formatted), or should the answer be changed not to reference the code that is not in the new revision of the question?

share|improve this question
1  
I'd put part back part of what was removed, just enough to show two of the strange ifs. –  Mat Sep 29 '12 at 17:21
2  
I would say that the edit made was inappropriate, no matter how innocuous it might seem. It changed the question too much. –  Bart Sep 29 '12 at 18:54
    
I agree with @Bart. If you are not the OP you should never make substantial changes to code in a question. –  murgatroid99 Sep 29 '12 at 18:55
add comment

1 Answer

up vote 1 down vote accepted

In my opinion, if a problem in the code is unrelated to the problem that the question addresses, anything addressing the other problem should be in a comment, not an answer. That's because addressing issues unrelated to the main problem in the question does not answer the question.

I also think that edits like that, if they substantially change the meaning of the question, should not happen in the first place.

share|improve this answer
add comment

You must log in to answer this question.

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