Is D painted into a corner?

H. S. Teoh hsteoh at qfbox.info
Thu Aug 28 19:43:58 UTC 2025


On Thu, Aug 28, 2025 at 06:47:19PM +0000, Brother Bill via Digitalmars-d-learn wrote:
> It seems like 'templates' are the 'Achilles heel' of D.

Wha... ??

I'm not sure what you mean by this, or where you're getting this
information from, but this is completely wrong.  D's templates, which
are part of its metaprogramming capabilities, are the primary reason I
even use D at all.  Take away templates, and I would lose 80% of the
reason I use D.

Now I'm not saying there isn't room for improvement.  There's always
room for improvement when it comes to reducing template bloat,
increasing compile speed when dealing with template-heavy code, etc.,
but getting rid of templates is totally not the solution.  And they are
hardly the "Achilles heel of D", whatever that means.  They are a very
big part of why D is so awesome.  Pre-template D (I believe that's 1.0
or maybe even before that) was pretty lackluster IMNSHO; it wouldn't
have registered on my radar back when I got fed up with C++ and was
looking for a better language.


T

-- 
Elegant or ugly code as well as fine or rude sentences have something in common: they don't depend on the language. -- Luca De Vitis


More information about the Digitalmars-d-learn mailing list