"string interpolation"
Nick Sabalausky (Abscissa)
SeeWebsiteToContactMe at semitwist.com
Sat Jun 8 22:23:34 UTC 2019
On 6/8/19 5:28 PM, Amex wrote:
> I and many others write a code that uses string mixins simply to define
> a symbol based on others:
>
> mixin(T~" "~id~" = "~value~");");
>
>
> This is very ugly and it is impossible to debug properly.
>
> Why not allivate this issue? Is is so common that there can be a short
> hand syntax that the compiler can decode naturally.
>
There is work being done on the idea of interpolated strings:
https://github.com/dlang/dmd/pull/7988
More information about the Digitalmars-d
mailing list