Join Slack
Powered by
could an alternative syntax for raw string literal...
# language-proposals
p
poohbar
11/30/2017, 3:54 PM
could an alternative syntax for raw string literal be considered? this is ugly:
Copy code
str.replace(""""""", """\""""")
how about
Copy code
str.replace(`"`, `\"`)
b
benleggiero
12/10/2017, 1:08 AM
Why not
str.replace("\"", "\\\"")
? Also ugly, but... not
as
ugly
Open in Slack
Previous
Next