Just another example of missing string interpolation
Walter Bright
newshound2 at digitalmars.com
Thu Oct 19 07:51:38 UTC 2023
On 10/19/2023 12:29 AM, Andrea Fontana wrote:
>> > is prone to errors
>
> Well, you know, even you posted a wrong example earlier in the thread.
The error won't result in anything other than oops there's a format string in
the output.
If that's the only prone-ness to errors, it's doing very well.
> I'm also somewhat concerned about potential error messages that might confuse
> users due to the non-obvious abstraction: f.e. what happens if someone writes
> ```myfunction(i"hello $name!");```
Do you mean someone accidentally prefixing with 'i'? How would that be any
different from the other proposal?
More information about the Digitalmars-d
mailing list