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

jmh530 john.michael.hall at gmail.com
Wed Dec 11 15:10:42 UTC 2019


On Wednesday, 11 December 2019 at 14:55:08 UTC, bachmeier wrote:
> [snip]
>
> My recollection is that in Python 3 that would be done {fvar: 
> 9.6f} or something like that (not a Python programmer).

Python's formatting is described here:
https://www.python.org/dev/peps/pep-0498/#id30
so I think it would be more like {var: {9}.{6}}

Scala's would be more like $val%9.6f, which I find both more 
concise and consistent with other D code.


More information about the Digitalmars-d mailing list