At the very least they could have used the cute Japanese 「quotation marks」 to avoid confusion.
Definitely the correct response.
Also,
> c++ allows 0-width spaces in variable names. Where's your god now?
Nowhere. We have strayed maximal distance from god's light and are currently in orbit around Satan.
Is that true though ?
> A valid identifier must begin with a non-digit character (Latin letter, underscore, or Unicode character of class XID_Start) and may contain non-digit characters, digits, and Unicode characters of class XID_Continue in non-initial positions. Identifiers are case-sensitive (lowercase and uppercase letters are distinct), and every character is significant. Every identifier must conform Normalization Form C.
Clang logs a warning about potentially invisible characters every time you use them. g++ just compiles the code without warning, even with -Wall and -Wpedantic.
What clang _doesn't_ warn for, is the use of the left-to-right override character. This can be used to confuse the victims of your code even more.
This seems to be the only limitation for that to be true.
So the question is does 0-width space (U+200B) survive canonical decomposition, followed by canonical composition?
It feels like it does to me.
Upon further investigation(I think IntelljIDEA reported Unicode value) I've found out that the 'semicolon' I copied is a Greek character that looks exactly like semicolon.
I wonder how people on vim/emacs deal with situation like this.
And in my case, even if compiler / interpreter reported about an invalid syntax - I would not think of checking the unicode codepoint as it the character appeared to look exactly like semicolon.
Maybe the Unicode Consortium should change it, but for now, Canadian Aboriginal is the correct term.
Just do a find and replace, refactoring is easy and trying to argue on the internet about it is tiring.
> trying to argue on the internet about it is tiring.
… exactly.
Simultaneously amusing and disturbing. Is there an award for which one might nominate this person?