String Interpolation
Imperatorn
johan_forsberg_86 at hotmail.com
Wed Oct 25 17:09:30 UTC 2023
On Wednesday, 25 October 2023 at 11:40:15 UTC, Jonathan M Davis
wrote:
> On Wednesday, October 25, 2023 3:55:13 AM MDT Imperatorn via
> Digitalmars-d wrote:
>> On Wednesday, 25 October 2023 at 07:08:06 UTC, Walter Bright
>>
Yes, but wouldn't it be great to have the ability to do it like
the other top 25 languages?
Take C# as an example (even though a bit unfair maybe), the user
never have to think about imports, he happily just uses SI
wherever he likes and achives a life of eternal happiness and
joy. D *could* also provide that. Joy.
Here are the images emphasizing the joy and fulfillment brought
about by successful string interpolation compared to the despair
of failing to achieve it. Each image accentuates the significance
of returning a string through string interpolation in bringing
joy to life
On the left, a lively neighborhood with diverse residents of
different genders and descents throwing a block party, dancing,
and rejoicing. Screens showcase the magic of successful string
interpolation. Bright lights and vivacious colors symbolize the
joy of returning a string. On the right, a desolate town square
with people of different genders and descents in despair, with
gloomy colors and storm clouds, symbolizing the downfall from
failed string interpolation.
Just look:

It continues:
Left side: a vibrant outdoor celebration with diverse students of
various genders and descents, laughing, collaborating, and
showcasing projects that champion successful string
interpolation. Festive decorations and lively music capture the
essence of joy. Right side: a gloomy library with students of
different genders and descents looking frustrated, surrounded by
stacks of books and screens filled with error messages,
representing the struggle without proper string interpolation.
Think about it
More information about the Digitalmars-d
mailing list