DIP 1027--String Interpolation--Final Review Discussion Thread
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Wed Feb 5 15:31:03 UTC 2020
On Wednesday, 5 February 2020 at 09:11:20 UTC, Walter Bright
wrote:
> On 2/4/2020 9:48 PM, FeepingCreature wrote:
>> This may sound trivial, but trivial syntax enhancements
>> matter, especially for a "top-ten" feature like format strings.
>
> It's a fair point, but there's a cost to supporting this.
> Nothing comes for free, and supporting everything is not
> practical.
I'd like to add that one of the reasons I utilize format strings
is because of this switch. The main issue with
foo("I want ", i, "bananas");
It is a lot harder to catch the spacing around 'i'. So rather
than fix the space I also reorder everything to us format syntax.
I'm on the side of leaning on D's power over C printf. I'd like
to hear cost over the proposal too, maybe I missed it somewhere
else?
More information about the Digitalmars-d
mailing list