Replies: 1 comment 6 replies
-
Can this be accomplished at compile time with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that a string literal broken into two or more segments, e.g.,
generates
error: Invalid statement encountered inside a compound-statement (at '"world\n"')
.I then remembered that Herb had demoed raw string interpolation. However, breaking up a literal string into two lines is usually done to concatenate the two segments so that they'll appear on one-line. So using a raw string to "join" the pieces, introduces a newline (unless, I assume, one uses a backslash--as in the days before literal concatenation [CORRECTION: the backslash doesn't help because "raw" really means raw, even the '\n' is understood literally].
So the question is: will CPP2 support string literal concatenation?
Beta Was this translation helpful? Give feedback.
All reactions