String interpolation, after a healthy debate on discord

Ogi ogion.art at gmail.com
Fri Dec 10 13:51:16 UTC 2021


On Thursday, 9 December 2021 at 21:06:11 UTC, WebFreak001 wrote:
> For any new user the `text(i"Hello $name!")` or `i"Hello 
> $name!".text` syntax could be daunting for regular use, 
> possibly even hindering the adaption of interpolated strings 
> for regular string usage.

Not only that, you’ll have to import `std.cov` or `std.format` 
whenever you want to get a string out of an istring. Kinda 
defeats the purpose of string interpolation as a language feature.


More information about the Digitalmars-d mailing list