Re: inlined "here" strings
Ray Blaak 14 Jul 2005 15:41 UTC
Michael Sperber wrote:
>xxxxxx@beckman.com 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"