Phobos' slow descent into madness
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.com
Fri May 7 23:56:57 UTC 2021
On Friday, 7 May 2021 at 22:36:09 UTC, MoonlightSentinel wrote:
> On Friday, 7 May 2021 at 20:47:57 UTC, Andrei Alexandrescu
> wrote:
>> In turn, format turns out to be used, often gratuitously, in
>> very, very many places during compilation, particularly in
>> std.traits itself (as an aside: format("%s[]")? Really? What
>> happened with good old string concatenation?).
>
> Except that string concatenation doesn't work with callback /
> output range based `toString` implementations.
Point taken, but I was referring to compile-time uses where that
is practically never. There are zero instances of that case here:
https://github.com/dlang/phobos/pull/8052. Almost in all cases
the code that replaces calls to format() is shorter and simpler.
More information about the Digitalmars-d
mailing list