Sane API design (AKA C's #ifdef hell)
Walter Bright
newshound2 at digitalmars.com
Sat Apr 18 20:06:46 UTC 2026
On 4/17/2026 6:33 AM, Dejan Lekic wrote:
> In general, configuration management with D is terrible because DOD (D gOD)
> thought `version` is enough, and then you see code which first turns version(s)
> into enum(s), and then you see tons of static ifs in the code.
People have done the enum thing in D, and it broke everything and I had to fix it.
A link to and example of what you're talking about? Perhaps I can help.
More information about the Digitalmars-d
mailing list