Colton Idle
11/09/2023, 6:33 PMephemient
11/09/2023, 6:38 PM"""some${"$"}thing"""
is the output if you ask the IDE to convert "some\$thing"
to a raw stringColton Idle
11/09/2023, 6:40 PMCasey Brooks
11/09/2023, 6:40 PM${'$'}
syntax. And it is documented at the bottom of this pageephemient
11/09/2023, 6:42 PM$
interpolation still works but they refer to the same thing in Kotlin (some other languages use the terms differently)${'$'}
and ${"$"}
both work, it doesn't matter which one you pick as the compiler will make it a static part of the string either way (it doesn't perform unnecessary constant interpolation at runtime)Casey Brooks
11/09/2023, 6:45 PMJeff Lockhart
11/09/2023, 8:39 PMKotlin does not have the concept of a "raw string". Kotlin has "multiline strings".
https://youtrack.jetbrains.com/issue/KT-2425/Provide-a-way-for-escaping-the-dollar-sign-symbol-in-multiline-strings-and-string-templates
ephemient
11/09/2023, 8:42 PMJeff Lockhart
11/09/2023, 9:01 PM