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

Kagamin spam at here.lot
Fri Dec 10 08:43:43 UTC 2021


On Thursday, 9 December 2021 at 16:16:58 UTC, deadalnix wrote:
> On Thursday, 9 December 2021 at 14:04:18 UTC, Kagamin wrote:
>> On Thursday, 9 December 2021 at 13:27:06 UTC, Ola Fosheim 
>> Grøstad wrote:
>>> A bit clunky. With a custom interpolation function you could 
>>> overload on the return type and have domain specific syntax.
>>
>> DSLs are already possible with template mixins in a clean form 
>> without sigils.
>
> No, there are identifier resolution problems.
>
> It's like we don't want macro, so we reinvent 20 bad versions 
> of them in the effort of not implementing them.

That's what L stands for in DSL. As opposed to interpolated 
string, DSL has semantics, which can inform identifier resolution.


More information about the Digitalmars-d mailing list