Interpolated strings
crimaniak via Digitalmars-d
digitalmars-d at puremagic.com
Sat Apr 15 13:35:56 PDT 2017
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote:
> The compiler will basically lower the $"..." string to a mixin
> that concatenates
> the expression parts of the (inside the {}) and the plain text
> parts.
It's easy implementable as a library (see
https://github.com/Abscissa/scriptlike#string-interpolation) so
it does not seem like a good idea to modify the language, only to
change interp!"" to $"".
More information about the Digitalmars-d
mailing list