Mirror of
forum.nim-lang.org
index
10044 :: Is the escape sequence case-insensitive?
[2023-03-29T18:44:05+02:00]
View Orginal
sls1005
(orginal)
[2023-03-29T18:44:05+02:00]
view original
echo
[
"
\C
\X0A
"
]
# ["\r\n"]
Run
It seems to be so but I couldn't find anything about it in the documentations.
inv2004
(orginal)
[2023-03-29T21:06:49+02:00]
view original
Just checked it in
"
Mastering Nim
"
:
inv2004
(orginal)
[2023-03-29T21:07:50+02:00]
view original
and here:
https://nim-lang.org/docs/manual.html#lexical-analysis-numeric-literals
sls1005
(orginal)
[2023-03-30T03:30:05+02:00]
view original
It's about numeric literals, but escape sequences are in string literals.
Araq
(orginal)
[2023-03-30T08:42:29+02:00]
view original
They are supposed to be case-insensitive, yes. The manual should be updated.