I think that _if_ we should introduce yet another string syntax, then rather than trying to figure out the quote character to end all quote character, we should let the user pick an arbitrary quote character. Think \verb in TeX. In fact, #" could probably be extended in this fashion, as long as we restrict the arbitrariness of the quote character to not be alphanumeric, so as to avoid conflicts with other preprocessor(-like) directives. Of course, whitespace should not be allowed either.
That is:
#`foo`
would give you the backquote syntax,
#|weird, ain`t it|
would give you a different one where you can use backquotes, etc etc.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-09-21 18:23: Subject: Re: wish: string with other quoting then \
#` is nice. But is there any better character that is even less common? Or, I think I'd like the final to be a tupel too, since that's easier to avoid.
How about #`...`#? But it kind of looks ugly... I guess [[...]] is out of the question?
For the multiline, I think I'd like a nice keyword, like #string. For instance #multiline,
string s2 = #multiline __DELIM ... __DELIM;
(note the semicolon; it must be there to complete the sentence.)
How easy is that to implement in the parser?
/ Mirar