Better string mixins

Bastiaan Veelo Bastiaan at Veelo.net
Wed Jan 2 21:06:19 UTC 2019


On Wednesday, 2 January 2019 at 18:59:53 UTC, Dgame wrote:
> Hi, I've played around with string interpolation and wanted to 
> ask if this is somewhat helpful?
>
> https://run.dlang.io/is/6AokiH

You are aware of `writefln`?

>    writeln(fmt!("a = $a, b = $b, c = $c", a, b, c));
>    writefln("a = %s, b = %s, c = %s", a, b, c);

These lines produce the same output.


More information about the Digitalmars-d mailing list