System programming in D (Was: The God Language)

Nick Sabalausky a at a.a
Mon Jan 2 14:07:48 PST 2012


"Timon Gehr" <timon.gehr at gmx.ch> wrote in message 
news:jdlbpq$2b7e$1 at digitalmars.com...
>
> What the template 'X' currently achieves is an improvement in syntax:
>
> string generated = "foo!\""~x~"\"(\""~bar(y)~"\")";
>

Ewww, who in the world uses double-quote strings for code containing quotes? 
That's not a fair comparison. This is a better comparison:

string generated = `foo!"`~x~`"("`~bar(y)~`")`;

vs

string generated = mixin(X!q{
   foo!"@(x)"("@(bar(y))")
});





More information about the Digitalmars-d mailing list