Why is D unpopular?

max haughton maxhaton at gmail.com
Wed May 18 19:08:59 UTC 2022


On Wednesday, 18 May 2022 at 19:07:38 UTC, H. S. Teoh wrote:
> On Wed, May 18, 2022 at 11:57:13AM -0700, Walter Bright via 
> Digitalmars-d wrote: [...]
>> For example, look at the dmd source code itself. We maintain, 
>> by hand, a set of equivalent .h for them. A cumulatively 
>> enormous amount of time has been expended on that, and 
>> finding/fixing the bugs from when they get out of sync.
> [.[..]
>
> This is, to me, a flashing red (and beeping) neon sign begging 
> for auto-generation of .h from .d.  At least, that's what I'd 
> do in my own project if I faced a similar situation.
>
> It's never a good idea to maintain two (slightly different) 
> copies of
> the same thing by hand.
>
>
> T

In this case it's actually a really good idea because politically 
it forces people to try and look after the C++ header interface.

One day it'll likely be more automated but until that automation 
can detect nasty changes it's better to have the frontend.h diff 
be extremely obvious.



More information about the Digitalmars-d mailing list