DIP 1027--String Interpolation--Final Review Discussion Thread
Steven Schveighoffer
schveiguy at gmail.com
Tue Feb 4 12:47:28 UTC 2020
On 2/3/20 10:17 AM, Steven Schveighoffer wrote:
> On 2/3/20 9:52 AM, Adam D. Ruppe wrote:
>> On Monday, 3 February 2020 at 14:37:22 UTC, Steven Schveighoffer wrote:
>>> I'd do it a little different, so we don't throw away the work the
>>> compiler already did:
>>>
>>> i"$apples and ${%d}bananas"
>>>
>>> =>
>>>
>>> (__d_format_literal!(Format.init, " and ", Format("%d")), apples,
>>> bananas)
>>
>> Yes, that would be excellent. If you make a motion to amend the DIP,
>> I'll withdraw my motion and second yours. Let's form a coalition and
>> get Walter onboard!
>
> I hope this can work, but I feel Walter might not be on board due to
> past comments from him. This is why I feel we can wait and get string
> interpolation in, and then later add this.
>
> But I'll throw the idea out there, and see what he says.
As I expected, this was rejected, and Walter didn't understand what I
was saying, says we shouldn't bake % into the format specification (it
doesn't), and that it's like AST macros (it's not). Since there's no
arguing on the feedback thread, I didn't want to push it.
-Steve
More information about the Digitalmars-d
mailing list