Alternate string literal syntax (with mixins)?
Lionello Lunesu
lio at lunesu.remove.com
Mon Feb 12 00:51:43 PST 2007
Kristian Kilpi wrote:
>
> String literals with mixins are a bit awkward sometimes (editor
> highlighting etc).
>
> Some special marks -- I use @{ }@ here -- could be used to mark a part
> of a source file as a string literal, just like /* */ marks a part of
> code as a comment.
Maybe, instead of special marks, we could use something like XML DOM's
"innerXml":
void Somefunc()
{
//code here
}
auto code = SomeFunc.innerD;
The problem with this is that you can't use invented operators, since
everything will have to be correct D code..
L.
More information about the Digitalmars-d
mailing list