Discussion Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1

Adam D. Ruppe destructionator at gmail.com
Sat Sep 12 12:53:53 UTC 2020


On Saturday, 12 September 2020 at 09:06:00 UTC, SHOO wrote:
> And idup uses std.format.

We're thinking about dropping the format string part, which would 
immensely simplify this implementation to the point where there's 
no need for the import anymore.

It also simplifies the syntax and the explanations. The cost is a 
bit less compatibility with existing functions, and if you do 
need to specify formatting, it would be done by functions instead 
of by strings.

So like i"${%x}number" would have to  be i"$(number.hex)" or 
something instead.

There's some details to work out but it looks like a good 
direction right now.


More information about the Digitalmars-d mailing list