[OT] C# can do all the interpolated strings now
Kagamin
spam at here.lot
Fri Dec 10 08:26:38 UTC 2021
On Thursday, 9 December 2021 at 14:30:33 UTC, Ola Fosheim Grøstad
wrote:
> I am not suggesting the implementation of builtin string
> interpolation, but custom literals with conversion functions.
> It should probably not be called ```string_interpolation```,
> just ```convert``` or ```@convert```.
>
> This is different from string mixins as it would be more
> composable, overloadable, and with stronger typing and no
> ```mixin```.
I looks like you propose string mixin with a different syntax. If
behavior is customizable, you can't guarantee the custom handler
will use a strong type system and provide all those features you
want.
More information about the Digitalmars-d
mailing list