The problem that took him 5 years to fix in C++, I solved in a minute with D

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Mar 10 08:52:43 UTC 2022


On Thursday, 10 March 2022 at 06:44:47 UTC, Paulo Pinto wrote:
> The way I see it, C# 10 and C++ 20 have mostly catched up in 
> where D was 10 years ago, Rust and Go have found out a way to 
> push them into devs regardless of what they think about them, 
> thanks all those Cloud Native Foundation projects, Khronos is 
> slowly adopting Rust alongside C++ on some of their ongoing 
> standard discussions.

It was probably a good move for Rust and Go to go their own way, 
rather than copying others too much, in the sense that they stand 
out with one significant feature that is rare.

> Creating such ecosystems is what D should worry about, not how 
> great a bare bones compiler is against the competition.

D should start with fixing basic problems such as not being able 
to unify types with alias. C++ is currently ahead in 
meta-programming utility IMHO. Template composition is 
foundational for meta-programming, without proper aliases it is 
just not very practical.

After that the whole memory management and "shared" topic should 
be settled in a way that bring the language some unique 
advantages.

Until that is in place there is really no use in pointing to 
minor features like string concatenation, which basically has no 
measurable impact on true system level programming or advanced 
(non-macroish) meta programming for that matter.




More information about the Digitalmars-d mailing list