I recently posted this answer:
It contains a block of Java code, written by me, currently under an edit war between myself and the original asker of the question.
Under "discussion", is not the content of the code, but the formatting.
I am very much for readable code, and so when the OP edited my answer to insert Egyptian Brackets into my answer, I reverted it. (Just as I would revert an edit that went through and changed all instances of "Color" or "Humor" to "Colour" and "Humour")
This went back and forth for a while, before I explicitly asked the OP to stop editing my answer. He did... but then suggested edits for the exact same changes started showing up — and that's the reason we're here: the community itself seems conflicted as to whether changing the format is a valid edit.
Not sure what the requirements are to view these, but:
- Suggested Edit 1 -- Approved,
- Suggested Edit 2 -- Rejected,
- Suggested Edit 3 -- Approved,
- Suggested Edit 4 -- Rejected by Author.
And then to top everything off, another well-meaning community member edited the edit, because they thought the altered code was unclear, here.
So, Stack Exchange, when should code formatting edits be allowed, and when should they be rolled back?
(And in this specific case, can we maybe get a lock on the post? I'm still getting suggested edits from "community" every 30 minutes or so)
if
requires a brace block. IMHO, a major advantage of Allman style is that anif
that controls a single non-compound statement looks very different from one that controls a compound statement, thus minimizing the risk of confusion.