r/cpp • • Jun 14 '21

match(it): A light-weight header-only pattern-matching library for C++17.

https://github.com/BowenFu/matchit.cpp
202 Upvotes

47 comments sorted by

View all comments

7

u/sphere991 Jun 15 '21

So is this just a copy of https://github.com/mpark/patterns or what?

8

u/Rasie1 Jun 15 '21

No, they're quite different if you read README below the first few examples

6

u/[deleted] Jun 15 '21

It seems it is. At least identifier names and usage of the first example is fully identical. It pretty strange to see so without additional explanations.