Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2

Luhrel lucien.perregaux at gmail.com
Thu Feb 4 09:22:38 UTC 2021


On Thursday, 4 February 2021 at 08:10:57 UTC, Ola Fosheim Grøstad 
wrote:
> On Wednesday, 27 January 2021 at 10:33:08 UTC, Mike Parker 
> wrote:
>> This is the discussion thread for the second round of 
>> Community Review of DIP 1036, "String Interpolation Tuple 
>> Literals":
>
> The whole "${}" thing is too verbose, it reminds me of the 
> JavaScript variant which is basically no easier to read than 
> concatenation.  Python got it mostly right...
>
> But I think D should reject superfluous features like this that 
> has very limited benefits. The compiler should be made simpler, 
> and deal with things like memory and type system before more 
> code is added.

In Python, there is just the dollar sign less...

--


The DIP does not mention anything about wstring and dstring.

```
double price = 1.05;
auto a = i"Une baguette coûte ${price}€"w;
```

Should works too.


More information about the Digitalmars-d mailing list