Please feel free to ignore my ramblings.
Why do this?
Learning proper regexp quoting/syntax seems to be, at least for most people, a real pain. However, quoting is the same everywhere, so once learned it's mostly the same in most languages. Why deviate from this?
IMHO the number one compelling reason for using pike is that it is a lot like most languages - only better. I fear that this is not a verry good idea (apart from better multi line string support) as it sets it apart in a verry touch area - string manipulation.
I do not think that weird string quoting is what is going to get pike world domination. Too radical differences scare people away. For instance - the most common complaint about python I've ever heard from people new to the language is the string indexing (which quite frankly is just plain dumb IMNSHO).
/ Peter Lundqvist (disjunkt)
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