Feedback Wanted on Homegrown @nogc WriteLn Alternative

Andrej Mitrovic via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 27 04:06:24 PDT 2014


On 9/27/14, H. S. Teoh via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> 	writefln!"...format string here"(... /* arguments here */);

Mmm, I like this. It would be one of those killer little features to
show in a talk. Slide 1:

// oops, forgot an %s
writefln("%s %s", 1, 2, 3);

Slide 2:

// Programmer error caught at compile-time!
writefln!("%s %s")(1, 2, 3);


More information about the Digitalmars-d mailing list