C++ pattern matching is coming

ryuukk_ ryuukk.dev at gmail.com
Sun Oct 23 00:12:32 UTC 2022


https://twitter.com/seanbax/status/1583654796791140352/photo/1

It looks like C++ is catching up pretty fast with other modern 
languages (pattern matching, builtin sumtype, modules)

Pattern matching is mentioned in the D vision document (other 
section) [1], but is missing in the project board [2]

Is it still planned or it was mentioned as "what's possible next"?

One issue with C++'s take is they will reserve 2 more keywords 
(choice, match), i think it is a huge mistake, enum and switch 
should have been reused imo


[1] - https://github.com/dlang/vision-document#other
[2] - https://github.com/orgs/dlang/projects?query=is%3Aopen


More information about the Digitalmars-d mailing list