SE-0200: "Raw" mode string literals

Any raw string literal syntax with fixed delimiters has the problem that you can't escape the delimiter. I'd prefer a design where the delimiter can be user-specified, so that anything can be embedded verbatim within a literal without escaping. There's lots of precedent for this—C++ has r"DELIMITER( )DELIMITER", Postgres has $DELIMITER$ $DELIMITER$, Ruby and Perl have their q operators which accept almost any following punctuator, shell has <<HERE\n .... HERE, and so on. I don't have a particular preference to which approach we take, but I think a user-controllable delimiter should be a requirement.

22 Likes