[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inlined "here" strings



Michael Sperber wrote:

bburger@xxxxxxxxxxx writes: [about C#'s @"..." notation]

But that still means " can't appear in the string, right?  That would
mean your suggestion solves a different problem than here strings,
which are for encoding strings that *do* contain ".
There are ways around that. If you limit yourself to single char terminators, then you can do things like having the first char be the quote char, e.g.

#@"no quotes here"
#@!no bangs here!

This becomes multiline if you include newlines:

#@"a 2 line
string"