DIP 1027---String Interpolation---Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Sat Dec 14 07:34:05 UTC 2019


On 12/11/2019 2:57 AM, Alexandru Ermicioi wrote:
> Why not just split interpolated string into just a tuple of args & strings. For 
> example:
> Given: (i"I ate %apples and %bananas totalling %(apples + bananas) fruit.")
> Is lowered to a tuple: ("I ate ", apples, " and ", bananas," totalling ", apples 
> + bananas," fruit.")

I don't see the point of that. The user could write it that way to begin with.


More information about the Digitalmars-d mailing list