Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
Walter Bright
newshound2 at digitalmars.com
Fri Jan 29 04:25:54 UTC 2021
On 1/28/2021 6:42 AM, Steven Schveighoffer wrote:
> On 1/28/21 1:12 AM, Walter Bright wrote:
>> It appears to have abandoned being usable with printf?
>
> Yes and no.
>
> Yes, we do not think that using printf with interpolated strings *without
> modification* is an important goal. printf works fine as it is. This is D, not
> C. writeln IS usable without modifications.
>
> And no, it is not abandoned, because it's perfectly possible because of the
> awesome power of metaprogramming allowed in this DIP:
>
> https://run.dlang.io/is/X5HcXS
Interesting, but it's really writing your own printf, and one that doesn't
accept any format modifiers.
More information about the Digitalmars-d
mailing list