DIP 1027---String Interpolation---Community Review Round 1
something at something.com
Mon Dec 16 11:00:34 UTC 2019
On Thursday, 12 December 2019 at 17:05:32 UTC, Adam D. Ruppe
> On Thursday, 12 December 2019 at 16:50:47 UTC, aliak wrote:
>> So i"blah %var" would not return a tuple but a type that has
>> alias this to string? Like:
> Yup that's my proposal:
> Walter's proposal isn't bad, though mine is better :)
> However I would tweak one thing about mine. Before I said "auto
> arg1 = 50; ". I'd actually change that now to `auto arg1 = ()
> => 50;` for more compile time / runtime mixing compatibility.
> I actually kinda like the format string from Walter's proposal,
> though mine can actually do that too already by reading format
> stuff in CTFE right out of the string.
Ah ok. Yeah that sounds pretty good!
I'm starting to wonder now, what's the use case for returning
tuples? Why not just a string?
More information about the Digitalmars-d