DIP 1027---String Interpolation---Community Review Round 1

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Dec 11 12:52:19 UTC 2019


On Wednesday, 11 December 2019 at 11:45:07 UTC, Andrea Fontana 
wrote:
> I hoped it was expanded to a function call rather than to a 
> tuple...

Or maybe some kind of formatting-objects protocol? Then you could 
things like:

f" …%1.3f{some_float}…{otherstuff}"

=>

(
"…",
  string_format_f!typeof(some_float)(1,3)(some_float),
"…",
otherstuff
)

*shrugs*


More information about the Digitalmars-d mailing list