Putting quotes in wysiwyg strings

Bill Baxter wbaxter at gmail.com
Thu Nov 23 03:32:46 PST 2006


renox wrote:
> Bah, I feel that putting any fixed delimitor for string is bond to create a
> problem for some user whether it is simple, double quotes..
> 
> Why not reuse a good idea from the shell: <<FOO .... FOO
> putting a customisable end-of-text word can avoid many problem.
> 
> Sure this makes the parser a bit more complex, but not that much..
> So for D it would be something like:
> r <word>" ... "<word> where word is some text without space
> or r(<word>)" .... "<word>  or the same thing but with a keyword "raw" instead of r.
> 
> Comments?

I wouldn't mind that, having gotten used to such "here-is documents" in 
languages like Perl and PHP.

--bb



More information about the Digitalmars-d mailing list