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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Dec 16 23:27:13 UTC 2019


On Monday, 16 December 2019 at 22:33:57 UTC, Patrick Schluter 
wrote:
> what to define for D. I checked today what other languages do 
> and at least for kotlin. C#, scala, swift and 2 other there is 
> nothing consistent of what interpolated strings are.

Not sure what you mean by this, I find popular languages to be 
remarkably consistent.

Python:
     f"Three = {1 +2 }"

C#:
     $"Three = {1+2}"

TypeScript:
      `Three = ${1 + 2}`

Swift:
     "Three = \(1+2)"



More information about the Digitalmars-d mailing list