What are delimited strings good for?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Apr 10 12:17:54 PDT 2011
Are we forgetting the fact that using delimited strings allows us to
have syntax highlighting in editors?
E.g.:
void stringParser(string str)()
{
mixin(str);
}
void main()
{
stringParser!(q{
int x = 1;
int y = 2;
writefln("%s %s", x, y);
});
}
This is a huge benefit over having everything highlighted in one solid
color as a string.
More information about the Digitalmars-d-learn
mailing list