[OT] C# can do all the interpolated strings now
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Dec 13 16:40:31 UTC 2021
On Monday, 13 December 2021 at 15:42:43 UTC, Q. Schroll wrote:
> If I understand your suggestion correctly, both would compile,
> but be handled differently. It's a one-keystroke difference and
> people will conflate `i""` and `f""` for sure and it could lead
> to serious vulnerabilities. Carefully crafted `func` can make
> one an error, but not so carefully made ones might not. It
> becomes a hard(er)-to-use-correctly issue.
I don't think api's should take the interpolated-list at all.
That would be a sign of a weakly typed api.
I would prefer something like ```sql"…"```, ```css"…"``` etc.
> the first place. One could do a best effort approach, but I
> agree that weak typing is bad.
It is bad, yes. C is borderline untyped in some cases.
More information about the Digitalmars-d