The state of string interpolation...one year later
Jonathan Marler
johnnymarler at gmail.com
Tue Mar 19 12:07:52 UTC 2019
On Tuesday, 19 March 2019 at 10:11:27 UTC, Atila Neves wrote:
> On Sunday, 17 March 2019 at 10:40:28 UTC, Nick Treleaven wrote:
>> On Sunday, 17 March 2019 at 06:01:35 UTC, Jonathan Marler
>> wrote:
>>> text("a is", a, ", b is ", b, " and the sum is: ", a + b)
>>>
>>> Ironically, his example had a mistake, but it was hard to
>>> notice.
>>
>> Maybe he wrote that on the forum. In a text editor syntax
>> highlighting would make the mistake clearer, but it can still
>> happen. The interpolated syntax is definitely clearer.
>
> Yep. At the time I pointed out I wouldn't have made the same
> mistake in Emacs.
For me, even with syntax highlighting it's still hard to spot the
mistake. So it's good to get your perspective which is that you
know syntax highlighting would have prevented this mistake in
your case.
Off topic, I enjoyed your talk on emacs, I'm a long time user
myself.
More information about the Digitalmars-d
mailing list