Is D painted into a corner?
Steven Schveighoffer
schveiguy at gmail.com
Fri Aug 29 01:59:06 UTC 2025
On Thursday, 28 August 2025 at 18:47:19 UTC, Brother Bill wrote:
> It seems like 'templates' are the 'Achilles heel' of D.
>
> Without starting a flame war, has D gotten to the point where
> ordinary mortals have difficulty coding in D with 'templates'
> such as 'cycle' requiring rewrites into 'myCycle'?
What you ran into is a bug. Indeed, sometimes with generative
code, if there is a bug in the checks, you get very weird stuff
as a result, sometimes hard to decipher.
But the solution suggested by Monkyyy isn't a *requirement*. I
would never suggest that the correct way to use phobos is to work
around its bugs. Maybe as a stopgap, until the problem is fixed.
> Does D now require 'deep' memory into layers of history and
> workarounds?
No. It's a bug. We fix it, and now the next person doesn't have
the same error.
>
> Is D a general purpose language, suitable for Application
> Programming, or does it have a more limited scope?
Yes it is as suitable as any major language that exists today.
All languages have bugs. That doesn't negate their suitability
for use.
-Steve
More information about the Digitalmars-d-learn
mailing list