how about ``` fun main(args: Array<String>) ...
# language-proposals
r
how about
Copy code
fun main(args: Array<String>) {
    val str = "--\"--"
    println(str)
    println(str.replace("\"", "\\\""))
}
l
@rrader Did you read the topic of this channel?
r
yeap, I write to @poohbar
l
You should edit your message to add the mention to avoid any confusion then
k
This isn't a raw string, he specifically wants to use a raw string
r
I find
"""
more useful in multiline beside being able to refer directly to
"
without escaping it. https://github.com/kategory/kategory/blob/master/kategory-annotations-processor/src/main/java/kategory/derive/DerivingFileGenerator.kt#L131-L147
b
Why is raw string necessary in this scenario?