02.11.21 18:49, Jim J. Jewett пише:
If escape sequences were also allowed in comments (or at least in strings within comments), this would make sense. I don't like banning them otherwise, since odd characters are often a good reason to need a comment, but it is definitely a "mention, not use" situation.
If you mean backslash-escaped sequences like \uXXXX, there is no reason to ban them in comments. Unlike to Java they do not have special meaning outside of string literals. But if you mean terminal control sequences (which change color or move cursor) they should not be allowed in comments.
At the time, we considered it, and we also considered a narrower restriction on using multiple scripts in the same identifier, or at least the same identifier portion (so it was OK if separated by _).
I implemented this restrictions in one of my projects. The character set was limited, and even this did not solve all issues with homoglyphs. I think that we should not introduce such arbitrary limitations at the parser level and left it to linters.