#` 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
Previous text:
2003-09-21 18:08: Subject: Re: wish: string with other quoting then \
On Sun, Sep 21, 2003 at 04:45:02PM +0200, Mirar @ Pike developers forum wrote:
`+(1,2);
Result: 3
string s=`+(1,2);`
Well, this might be a problem. Then we can use #' syntax:
string s1 = #`a "string"`; string s2 = #``__DELIM; // Newline here is not counted, spaces are ignored ... Newlines here are counted unless string is terminated with \ (as usual) __DELIM; // This must be at beginning of the line
So we are limited to the case that empty string may not be specified with ``.
...but you're positive to my ideas in general?
Oh yes... Very, very positive :) I really like this idea - it would be really convenient and useful. Especially in REs.
Regards, /Al
/ Brevbäraren