Chris is right, procedurally it is probably best to withdraw this proposal, and start a new “pitch” thread to discuss use-cases and possible syntax for raw string literal.
• • •
Just to get my thoughts written down though…
How about using single-quotes to demarcate *the delimiter*? That way it “looks like” you typed some text “inside” the double-quotes at each end of the string.
Although, to make the delimiters stand out, and to parallel multi-line strings, perhaps there should be three consecutive single-quotes (aka. triple single-quotes) around the custom delimiter.
Wait, better yet, make it three consecutive double-quotes around the delimiter:
let x = """customDelimiter"""
This is a raw string where \, ", and """ are preserved verbatim.
The leading-whitespace rule is the same as for multi-line strings.
There is no \(interpolation).
"""customDelimiter"""
Does that look reasonable? I don’t think we need a single-line version of this.