The state of string interpolation...one year later
Kagamin
spam at here.lot
Mon Mar 18 12:12:12 UTC 2019
On Sunday, 17 March 2019 at 18:32:55 UTC, Jonathan Marler wrote:
>>> foreach (i; 0 .. 10)
>>> {
>>> mixin(interp(`$( i ~ ")" ) entry $(array[i])`));
>>> }
>>
>> That doesn't look nice, does it?
>
> Not sure if you realize this but you're criticizing how the
> library solution looks, which was one of my main points :)
I mean $( i ~ ")
> And it's a contrived example to demonstrate an example that
> would be hard for a library to parse.
It's hard to parse even for a library? That sounds bad. Is it
required to be hard to parse?
More information about the Digitalmars-d
mailing list