String Interpolation
Meta
jared771 at gmail.com
Wed Oct 25 23:32:46 UTC 2023
On Wednesday, 25 October 2023 at 19:09:30 UTC, Adam D Ruppe wrote:
> And newer additions to languages try to do it right:
>
> https://openjdk.org/jeps/430
That's cool, although in typical Java style, the feature's power
is hamstrung:
```
Template processors execute at run time, not at compile time, so
they cannot perform compile-time processing on templates. Neither
can they obtain the exact characters which appear in a template
in source code; only the values of the embedded expressions are
available, not the embedded expressions themselves.
```
D has the opportunity to be on the very cutting edge here.
More information about the Digitalmars-d
mailing list