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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Dec 9 15:36:20 UTC 2021

On Thursday, 9 December 2021 at 15:20:42 UTC, WebFreak001 wrote:
> I don't think the common case should always have this extra `i` 
> prefix + needed function calling parentheses or ufcs dot. Just 
> only writing `text"hello $name"` is shorter, easier to type, 
> better to read.

Yes, in my experience I primarily use string interpolation when 
the API does not allow a comma-separated list. For instance if 
you throw an exception and there only is a message parameter.

I guess one could say that string interpolation shines where it 
overcomes API limitations, but it has to be concise.

More information about the Digitalmars-d mailing list