C++ pattern matching is coming

German Diago germandiago at gmail.com
Wed Oct 26 10:44:29 UTC 2022


On Tuesday, 25 October 2022 at 17:34:10 UTC, Alexandru Ermicioi 
wrote:
> On Tuesday, 25 October 2022 at 17:07:34 UTC, German Diago wrote:
>> 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.
>
> It is fine, if you have high compatibility with other 
> languages, but I'm against it being a companion of another 
> language, which implies that one without another cannot work.

I do not propose that at all either. I propose the best path 
forward compared to alternatives if you are using C++ as a big 
user-base case. Of course, fullfilling other cases is nice also. 
But I think this one is crucial.


More information about the Digitalmars-d mailing list