--
in a title is collapsed to —
. This probably isn't so great if the title contains <!-- -->
or x--
.
Is this intended behavior?
Running this query on data.stackexchange (I don't claim to be good at SQL):
SELECT
sum(case when Title LIKE '% -- %' then 1 else 0 end) AS [mdash],
sum(case when Title LIKE '% <!-- %' then 1 else 0 end) AS [comment],
sum(case when Title LIKE '%[a-z0-9]-- %' then 1 else 0 end) AS [decrement],
sum(case when Title LIKE '% --[a-z0-9]%' then 1 else 0 end) AS [increment],
sum(case when (Title LIKE '%-- %' OR Title LIKE '%--- %')
and Title NOT LIKE '% -- %'
and Title NOT LIKE '% <!-- %'
and Title NOT LIKE '%[a-z0-9]-- %'
and Title NOT LIKE '% --[a-z0-9]%' then 1 else 0 end) AS [uncategorized] FROM Posts
I get the following results:
mdash comment decrement increment uncategorized
7665 34 368 1752 472
The vast majority of valid uses cases would be unaffected by Tim Stone's proposal
<!-- -->
shouldn't be in titles. Titles should be descriptive about the problem, not include code snippets.--
but spell out mdash? Titles should contain words, not code, IMO.--
operator[tag] --...
in titles.--
is actually a++