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

matheus matheus at gmail.com
Thu Mar 10 14:50:31 UTC 2022


On Thursday, 10 March 2022 at 14:34:44 UTC, Ola Fosheim Grøstad 
wrote:
> No, but there is way too much bashing of other languages, 
> usually by people with a very limited knowledge of those 
> languages and their primary usage scenarios. It looks bad and 
> doesn't win anyone over.

My main programming language is C and I admit that I have a 
limited knowledge in C++ and even in D (Remember I use D as super 
C), but I can see like many other comments on that same video, 
that the whole thing was overwhelmingly painful, Period.

Like I said above, that guy on the video is well known on C++ 
community and seeing him struggling with this feature made me 
wonder how a newcomer would feel?

> Referencing other languages is only interesting if there is 
> something you want to learn from them.

Oh, but there is something to learn here, that in this regard C++ 
is a lot painful compared to D.

By the way let just remember the title of the video: "The 
`constexpr` Problem That Took Me 5 Years To Fix!"

That must be a hint.

Matheus.


More information about the Digitalmars-d mailing list