String interpolation, after a healthy debate on discord
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Tue Dec 14 11:40:46 UTC 2021
On Tuesday, 14 December 2021 at 11:14:03 UTC, zjh wrote:
> On Tuesday, 14 December 2021 at 09:50:15 UTC, bauss wrote:
>
>> It's ultimately D's downfall that features are too complex.
>
> Is d as complex as `C++`?
Depends on what you want to do. You can write simpler code in D,
often the syntax can be more compact in D.
However, C++ is adding features that make more convoluted
C++-constructs unnecessary, but as a programmer you have to
figure out what to not use since almost nothing is removed from
C++. So it is hard for beginners to figure out what not to do,
and what to do.
D is also increasing in complexity over time, often times I think
that is because shortcuts are taken in the design and
implementation.
The evolution of C++ is driven by the spec and not the
implementation, so some features makes it into C++ that greatly
improves the language even though some compilers have to be
changed quite a bit.
But evolution in C++ moves in many directions, because it is
designed by working-groups of different people. So it does not
present a homogeneous "philosophy".
It would be much easier for D to work towards a homogeneous
whole, but it has to be a conscious strategy because one can
easily be tempted to fan out in all kinds of directions (by
demands and DIPs etc).
More information about the Digitalmars-d
mailing list