| |
 | Posted by German Diago in reply to Alexandru Ermicioi | Permalink Reply |
|
German Diago 
Posted in reply to Alexandru Ermicioi
| On Tuesday, 25 October 2022 at 15:29:27 UTC, Alexandru Ermicioi wrote:
> On Tuesday, 25 October 2022 at 11:09:38 UTC, zjh wrote:
> I think 'D' can be the companion language of 'C++' .
For example, as 'C++' implements coroutines, 'D' does not need to implement it again.
As long as D can interface C++ very well, then, for users, When it's time to use 'D', use 'D'. When it's time to use 'C++', use 'C++'. Isn't it very cool?
Nope, its not cool. There are people that know D and not C++, since everyone's background is different. Having to learn two new languages is just waste of time, I'd rather just learn C++ and do everything in there if it is the case.
FWIW, D is a language. I would not advocate for or against anything. But the
highest chance of success for languages is compatibility to consume the old
code bases, that for sure, at least in the big picture.
- Kotlin -> compatible with Java
- Swift -> interoperable with Objective-C
- C -> C++
I did not see a clean-cut language that got popular yet for real use in a considerable amount of places. Namely, compatibility is a feature. How deep is the big question and the devil is in the details: source-compatible? API/ABI? Etc. but throwing away and rewriting is not even realistic.
|