C++ pattern matching is coming

Timon Gehr timon.gehr at gmx.ch
Thu Oct 27 23:04:43 UTC 2022


On 10/27/22 18:08, German Diago wrote:
> On Thursday, 27 October 2022 at 15:14:30 UTC, ryuukk_ wrote:
>> PHP also got builtin sumtype and pattern matching
>>
>> https://laravel-news.com/modern-php-features-explained
>>
>> https://news.ycombinator.com/item?id=33357318
>>
>>
>> D lagging behind most languages now :/
> 
> I do not think pattern matching is a must-have. It can be quite nice, 
> but you can do lots with all the other things.

I believe it's quickly becoming a feature where people will be pretty 
upset that a language lacks it. Lack of algebraic data types is 
definitely a reason why some people are avoiding D in my experience.



More information about the Digitalmars-d mailing list