Any time you write XML or HTML verbatim you would want this syntax, especially multiline one. Count the number of these in say Caudium (or Roxen) and you'll see that it would be very nice to have. Personlly I really like the
string s = #multiline __blah blah blah blah __blah;
syntax. Also it's not just multiline xml that would benefit. single line XML would benefit from not having to quote " all the time.
/ David Hedbor
Previous text:
2003-09-21 18:44: Subject: Re: wish: string with other quoting then \
Almost any syntax is only a small matter of programming to implement in the preprocessor. What concerns me is more all the other tools that has to understand it too, as I talked about in the last discussion about this. It's far from easy to get into Emacs and XEmacs, for example.
There's also the issue that Peter Lundqvist mentioned: The added complexity of another string syntax is a drawback in itself when it comes to learning curve. Is it really sufficiently useful to outweigh that?
I'd say that at least 5% of all string literals would have to benefit from a new syntax to motivate its existence. I only missed something like it about ten or twenty times in all the years I've used Pike. So from my point of view the drawbacks outweigh the benefits with a factor of thousand at least. But it all depends on how you typically use the language, of course. Someone that writes complicated regexps or pastes in multiline xml snippets all day long will certainly have a different perspective.
/ Martin Stjernholm, Roxen IS