Interpolated strings

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 19 07:16:42 PDT 2017


On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote:
> I really don't see how string interpolation is better then
> ` "The date is " ~ format("%04d", year)); `

That code is hideous, not hard to beat on every level... 
inefficient, hard to read.

The built in thing could potentially optimize it a little too - 
maybe have it be syntax sugar over a range.


More information about the Digitalmars-d mailing list