String interpolation

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 10 05:36:38 PST 2015


On Tuesday, 10 November 2015 at 12:40:07 UTC, Márcio Martins 
wrote:
> writeln(interp!"The number #{a} is less than #{b}");
>
> Quite pleasant syntax this way :)
> Not sure if it's feasible to do this on the language side.

Yes. Here a (stupid!) proof of concept:
http://dpaste.dzfl.pl/74b1a4e3c8c6



More information about the Digitalmars-d-learn mailing list