DIP 1027---String Interpolation---Community Review Round 1
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Dec 11 12:19:19 UTC 2019
On Wednesday, 11 December 2019 at 11:40:44 UTC, Ola Fosheim
Grøstad wrote:
> On Wednesday, 11 December 2019 at 11:21:08 UTC, Ola Fosheim
> Grøstad wrote:
>> log(f"I have {dec(3,2)}{account.total} USD in my pocket")
>>
Note: the above suggestion is close to Python 3.
https://docs.python.org/3/reference/lexical_analysis.html#formatted-string-literals
More information about the Digitalmars-d
mailing list