[OT] C# can do all the interpolated strings now

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sun Dec 12 20:55:49 UTC 2021

On Sunday, 12 December 2021 at 19:44:17 UTC, Q. Schroll wrote:
> On Thursday, 9 December 2021 at 16:30:28 UTC, Ola Fosheim 
> Grøstad wrote:
>> I would not recommend weaker typing, as it would be trivial to 
>> get stronger typing by simply supporting ```f"this $will 
>> become a string"``` and ```i"this $will become a list"```.
> That would have the problem that confusing `i""` and `f""` 
> could lead to SQL injections and related problems. The 
> improvement over using `i"".text` is almost nonexistent.

How could you confuse them? The type system would prevent it.

More information about the Digitalmars-d mailing list