News for hackers. Stuff that matters.
Re:I spent a year of my life making an ASN.1 compiler in D by WalterBright on Thursday October 23, 2025 @10:52PM (#45690235)
C#, Java and C++ have poor copies of the D features. For example, C++ constexpr is a bad design because a special keyword to signify evaluating at compile time is completely redundant. (Just trigger on constexpr in the grammar.)

C++ modules, well, they should have more closely copied D modules!

Re:I spent a year of my life making an ASN.1 compiler in D by pjmlp on Friday October 24, 2025 @01:05AM (#45690961)
They might have, still they are good enough to keep people on those ecosystems and not bother at all with D, and tbe current adoption warts concerning IDE tooling and available libraries.

Worse is better approach tends to always win.

Re:I spent a year of my life making an ASN.1 compiler in D by WalterBright on Friday October 24, 2025 @06:10PM (#45699608)
Good enough is fine until one discovers how much better it can be.
Re:I spent a year of my life making an ASN.1 compiler in D by pjmlp on Saturday October 25, 2025 @08:06AM (#45703236)
Unfortunately the opportunity window is gone now, and in the LLM age programming languages are becoming less relevant, when programming itself increasingly turns into coordinating agents.
Re:I spent a year of my life making an ASN.1 compiler in D by az09mugen on Saturday October 25, 2025 @07:28AM (#45703010)
I have a very naïve and maybe dumb question coming from someone who is used to scripting languages. It's about the `auto` keyword, while being a nice feature, why is it necessary to write it down ? Isn't it possible to basically say to the compiler : "Hey you see this var declared with no type ? Assume by yourself there is an `auto` keyword."