could an alternative syntax for raw string literal...
# language-proposals
p
could an alternative syntax for raw string literal be considered? this is ugly:
Copy code
str.replace(""""""", """\""""")
how about
Copy code
str.replace(`"`, `\"`)
b
Why not
str.replace("\"", "\\\"")
? Also ugly, but... not as ugly