As one of the reviewers who approved...
I remember this one, because it took a bit longer than the average review having to evaluate a few things.
Looking at the history now, I can see I made a mistake in approving.
The problem
(I see this issue in hindsight..)
While the original question only displayed 2 slashes, the OP had actually typed 3 slashes which can be seen in the source (which I viewed at the time of reviewing).
Then the first edit wrapped the 3 backslashes in code formatting, which then actually displayed all 3 slashes.
Then Fabio made an edit suggestion to "fix" this.
Your (Fabio) edit comment was quite informative, but there was a mistake in there which I mistakenly agreed with:
The previous edit added code formatting, which disables the escaping of ''. The OP had typed 3 of them, to have 2 displayed
I can (now) see this was incorrect assumption, because we do not know what the OPs intentions where here.
Perhaps the OP:
- Typed 3 slashes because their actual code has 3 slashes, and they
were not aware the site had escaped one of them
- Their code has 2 slashes, but OP was aware (or discovered) the site
escaped 1 of 2 slashes so entered a 3rd slash to display 2 slashes
- Perhaps they wanted 2 slashes displaying as per their question, but
their code had 3 slashes, or vice-versa (which could have been their
issue)
Or maybe... etc etc ... the point is we did not know what the OP wanted.
What should have happened
The only true resolve to any of the edits and reviews would have been ask for clarification from the OP.
The first edit:
Upon attempting to add code formatting, the first editor should have realised they do not know if the OP intended to display 2 slashes using the 3rd slash for escaping, or if they actually had 3 slashes in their code.
The first editor should have commented asking for clarification from the OP, as could the reviewers of this first edit.
Whether the first edit should have been submitted and/or approved or not is another matter, but all along the line, the issue was no-one knew what the OP's intentions where.
The suggested edit:
Fabio's edit should have also instead been a comment requesting clarification from the OP.
Review of suggested edit:
My review of Fabio's suggested edit should have been a reject, and a comment in the question asking for clarification from the OP.
The answers:
The answerers to this question also needed clarification from the OP, as the answers depended upon how many slashes the OP wanted to display and how many were in their code.
3 of the 4 answers were posted before the first edit, but obviously it's unfair to expect answerers to identify that the slashes in the post have no formatting and so there might be escaping going on.
Their expected knowledge is the basis of the question, not site markdown and how slashes are escaped in posts etc (although in an ideal world..).
So at some point one of the reviewers or suggested editors (including myself) should have commented and cleared up the issue for all concerned.
OP's intentions
As it turns out, the OP has confirmed they only wanted 2 slashes showing, so obviously did know about escaping.
OP comment:
Thanks for your point, Fabio, I just edited the post so that the \ is
only seen twice as intended.
But this only happened after the first edit and Fabio's suggested edit and the reviewers of it.
To be fair to Fabio
I feel the need to highlight a few things here.
Fabio commented before submitting the suggested edit:
Ironically, you have just faced this problem: in your original post
you had to type the \
3 times (it should actually be 4) in order to
have it displayed twice. That's because they are escaped. Now somebody
has edited your post by adding the code formatting, which disables the
escape, so we all see 3 backslashes instead of 2. C++ does the same
thing as this site.
It turns out this was correct, but it was a presumption as the OP might have had 3 slashes in their code and not known about the site escaping (no offence Fabio :)).
Rightly or wrongly, at least Fabio made the effort to comment, which also prompted the OP to fix their post, and provided a great example in relation to what the OP was asking about.
I wish I could see such good community spirit and positive outcomes more often..
And most certainly kudos for your good intentions here:
- Spending a fair bit of time trying to resolve a problem, commenting,
and suggesting edits
- Following up here with this question
- And certainly a notable mention for the suggested edit comment.
Although it was presumptuous, and I wrongly agreed, it was informative -
better than the usual edit comment of "some formatting" but the post
has all sorts of changes going on
My bad
As it turns out, my approval was correct, as OP's intentions were to only display 2 slashes, but I did not know this when I reviewed so I should have rejected.
So I did make a mistake in judgement here, but to be a little fair on me and everyone concerned, this is a rare case specifically because of slashes escaping in the post output, and as a result not knowing what the OP's intentions were.
It also wasn't from a lack of care or want for quality for the site, as I spent a min or two reviewing this suggested edit alone.
I did make the mistake however, and certainly something learned from it :)