Is there any way escape $ in raw string literal? ...
# announcements
s
Is there any way escape $ in raw string literal? example:
println("""  $d  """)
how escape $? this doesn't work:
println("""  \$d  """)
m
snrostov: using println("\$d") works for me
s
Yes. But question was about raw string literals (
"""string"""
)...
k
you won't like the answer
"""${"$"}"""
s
but why escaping not supported?
k
because they're "raw" strings. e.g. you can put windows paths in raw strings without escaping the backslash
s
Good point. Thanks