Closed skynavga closed 4 years ago
Why does
\
require escaping in string literals?
Because '\' in syntax literals is considered an escape character. Indeed, to get one backslash to appear here in a github comment, I am forced to use two backslashes. If one had only a bare single backslash in a specified string literal, then it would be interpreted as an escape for whatever character follows, which if no character follows, would be a syntax error due to an incomplete escape.
What about one of the following existing escaping mechanisms:
double-quoted-string
Just trying to avoid defining yet another escaping mechanism.
Because '\' in syntax literals is considered an escape character.
Not in ANBF syntax, for example.
Moving this PR (and related Issue) to 3ED, as the commenter is asking for a change unrelated to the original issue which was merely to clarify the meaning of \\
and not to question the existence of the convention.
The Timed Text Working Group just discussed Clarify escape in literal convention (#987). ttml2#1173
, and agreed to the following:
SUMMARY: @skynavga to make changes as minuted above.
@palemieux can you approve or drop you change request?
Closes #987.