I'm curious why the error was triggered for my comment:
It says "Don't comment on your upvote.", but I did not update that answer either.
I was able to comment by adding a "FWIW" at the beginning of the comment.
I can confirm that it's likely related to the +1
blocking logic mentioned here, because this would work without issue:
`! + [2,2,3]` is `true`. `!` is an operator, not a value.
But that's not the code the OP posted in their question...
So I know why now, but maybe there is a rule that can/should be tweaked to allow my case.
I also understand that the parsing rules should probably not be public knowledge.
However, since it was not my intention to post +1
, the error message didn't make any sense to me. It should be improved to make it clear what happened if you accidentally run into this.
Similar issue (duplicate): Why can't we put += 1 in a comment?
Again, I think the error message could be improved to follow the principles of least astonishment.
1 +
1 +
, but I see know that! + [1,2,3]
would contain+1
after stripping some punctuation marks. Still quite unexpected. Maybe an unfortunate side effect of keeping comments clean, but the pre-processor seems a bit too eager here (so maybe still a bug).1 +
typo there, hold the shift key for the1
and you get! +
.1 +
is also disallowed as a variation of+ 1
? But then why would I be able to post! + [2,2,3]
?[
in between.1 + ...............
. I mean I get that the rules should not be obvious. But the error message should at least be understandable for people who accidentally run into this.