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

bachmeier no at spam.net
Wed Dec 11 14:55:08 UTC 2019


On Wednesday, 11 December 2019 at 12:11:34 UTC, Martin 
Tschierschke wrote:

> Yes +1! It should be something common, not a dlang only syntax.
> => $var and ${expression}
>
> https://en.wikipedia.org/wiki/String_interpolation
>
> But this alone gives no way for formatting numbers, so maybe 
> ${%9.6f}{fvar} ?

My recollection is that in Python 3 that would be done {fvar: 
9.6f} or something like that (not a Python programmer).


More information about the Digitalmars-d mailing list