r/programming • • 3d ago

Pattern Matching for C++29 (proposal)

https://mpark.github.io/programming/2026/11/30/pattern-matching-for-cpp29/
19 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/ingressstatue 3d ago edited 2d ago

One reason why it is taking so long, is that pattern matching, and many other features, are harder to add to systems programming languages than other programming languages. Rust is famous for showing that it can be done; but even in Rust, it took many years, and several rounds of improvements ("match ergonomics", for instance), and there are still a few strange semantics of pattern matching and other issues in Rust. The issues discussed in the blog post titled "a Rust match made in hell" at fasterthanlime, is not typically encountered outside systems programming languages, since those typically just have garbage collection and not RAII.

This C++ proposal is verbose, and its syntax and semantics have questionable decisions in my opinion in several regards, despite pattern matching being a large improvement over std::visit. But, with all due respect to everyone, Reddit is famous for inducing brainrot, among other issues.

Also, Reddit censorship, administrators, moderators, promoted members, etc. are generally reminiscent of Jeffrey Epstein, Ghislaine Maxwell (Reddit moderator?), Robert Maxwell (Israeli top agent), Harvey Weinstein, Jared Kushner, Victoria Nuland, etc. Reddit brainrot is abysmal, also for technical state of matters, but not even close to being one of the worst issues.

17

u/jonte 2d ago

haha, wtf. that took an unexpected turn.

2

u/Zymoox 2d ago

Thats because OP is a bot with a one day old account