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

12345swordy alexanderheistermann at gmail.com
Fri Feb 5 03:12:30 UTC 2021


On Thursday, 4 February 2021 at 20:46:15 UTC, Ola Fosheim Grøstad 
wrote:
> On Thursday, 4 February 2021 at 17:05:30 UTC, Paul Backus wrote:
>> This makes using interpolation to generate D code 
>> significantly more cumbersome, because '{' is a common 
>> character in D code, and every occurrence of it would have to 
>> be escaped. It is much easier if the sequence used to 
>> introduce an interpolated expression is not a valid D token.
>
> Good! String mixins are evil, just a small step away from 
> C-macros...
> Their use should be discouraged and limited to the cases where 
> the language falls short.

They are no where close to c-macros. What are you even talking 
about?

-Alex


More information about the Digitalmars-d mailing list