Change XML to HTML. Last I checked ' was not a valid HTML quoting character (but I might be incorrect or it might have changed).
Last time you checked must have been a veeery long time ago. HTML 2.0 did allow ' as an attribute quote. I can't find the 1.0 spec right now...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-09-22 23:47: Subject: Re: wish: string with other quoting then \
The last comment is one thing I often wonder about. Why do people write "<foo xyz="bla"/>" when "<foo xyz='bla'/>" works just as well? No need to quote at all.
Change XML to HTML. Last I checked ' was not a valid HTML quoting character (but I might be incorrect or it might have changed).
For example, what would the interpretation of this be (note the space at the end of the first line)?
It would be a syntax error since there's no ending separator. It has to start first in the line. Also I'd think that the first and last newlines are thrown away.
string s = #multiline __blah foo __blah;
Is it "foo", " \nfoo\n ", "foo\n " or perhaps illegal? The suggestion also doesn't handle non-printing characters (e.g. non-breaking space) or wide-string characters which normally are entered using quoting. It would be terribly frustrating to find a block of multiline text and not be able to add the characters I want without rewriting all of it!
Just insert them verbatim, no quoting needed. Or that would be the idea at least (of course, non-breakable space would be impossible to see, so it might be quite annoying).
/ David Hedbor