The state of string interpolation
Jacob Carlborg
doob at me.com
Thu Dec 6 22:14:34 UTC 2018
On Thursday, 6 December 2018 at 21:20:54 UTC, Mike Franklin wrote:
> IMO the one thing that will likely get this across the finish
> line is to generalize it:
>
> 1) What is the fundamental missing language feature that is
> preventing us from implementing interpolated strings in the
> library?
AST macros :). That would give access to the caller's scope and
it can replace the call expression with whatever the macro
returns.
> 2) What other use cases besides string interpolation would be
> enabled by adding such a feature?
A whole lot of different use cases.
https://wiki.dlang.org/DIP50
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list