String Interpolation
Adam D Ruppe
destructionator at gmail.com
Thu Oct 26 01:47:33 UTC 2023
On Thursday, 26 October 2023 at 00:24:33 UTC, Walter Bright wrote:
> The money shot:
>
> "The design of template expressions deliberately makes it
> impossible to go directly from a string literal or text block
> with embedded expressions to a String with the expressions'
> values interpolated. This prevents dangerously incorrect
> strings from spreading through a program."
Yup. Even if we went with an object in D instead of a tuple, I'd
be against the `alias toString this;` part. Just too much history
saying that's a bad idea for D to embrace it at this point.
More information about the Digitalmars-d
mailing list