There doesn’t seem to be a mechanism to embed """
in a triple-quoted string that doesn’t involve interpolation. I.e.:
val tq = "\"\"\""
val s = """
This string needs to contain triple quotes, like this: $tq
"""
Obviously, this works, but feels a little awkward. It’s even more awkward if you’re writing a regex as a triple quoted string, but """
is part of the thing you want to match (work around: "{3}
in the regex).
Anyone got anything cleaner?