About string and int spliced together.

JN 666total at wp.pl
Thu Jun 18 10:19:25 UTC 2020


On Thursday, 18 June 2020 at 09:44:15 UTC, Kagamin wrote:
> You can use https://dlang.org/phobos/std_conv.html#text
> string s = text("My name is ", name, " and my age is ", age, 
> ".");

That looks actually quite nifty, I'll have to use that someday. 
Still it requires an import for std.conv, and when you import 
std.conv you might as well just to!string all the way.

Imagine if using ~ required import std.concat, I am sure it will 
be used more sparingly than it is now.


More information about the Digitalmars-d mailing list