Just another example of missing string interpolation

Adam D Ruppe destructionator at gmail.com
Tue Oct 17 17:37:15 UTC 2023


On Tuesday, 17 October 2023 at 17:27:41 UTC, Walter Bright wrote:
> Oops, forgot the leading 'i':
>
> ```
> stderr.write(i"$clear\r$(white)Progress:$clear$progress%
> \t$(white)Speed:$clear $curSpeed $unit");
> ```

Still won't work. Your dip1027 would write

%s\r%sProgress:%s%s%\t%sSpeed:%s %s 
%s\e[09m\e01m5\[30m\0[09m5bytes/sec

if you used it like that. This is one of the reasons why it was 
rejected.

If we want to move forward, there's actually a good proposal out 
there: https://github.com/John-Colvin/YAIDIP


More information about the Digitalmars-d mailing list