I think that would have problems, though, since the `-character is used in identifiers in pike...
`+(1,2);
Result: 3
string s=`+(1,2);`
...but you're positive to my ideas in general?
/ Mirar
Previous text:
2003-09-21 16:28: Subject: Re: wish: string with other quoting then \
On Sun, Sep 21, 2003 at 01:20:01PM +0200, Mirar @ Pike developers forum wrote:
If it didn't need " quoted either, it would be quite useful for Pike programs writing Pike programs or HTML or the like...
There is unused (mostly) backquote character (`), which might serve this purpose (perhaps in combination with #):
string x = ` Some text with " characters " and multiple lines in it`
It might clutter (somehow) with operator definitions, but unlikely.
Or alternative (a-la Perl):
string x = #``__EOS this is a multiline "unquoted" string __EOS
This last one assuming that string quoted by backquotes may not be empty, of course.
The first syntax is good enough for REs as well, IMHO.
Regards, /Al
/ Brevbäraren