Skip to content

Add Patternia — a header-only compile-time pattern matching DSL for C++#1732

Open
sentomk wants to merge 1 commit intofffaraz:masterfrom
sentomk:ptn-add
Open

Add Patternia — a header-only compile-time pattern matching DSL for C++#1732
sentomk wants to merge 1 commit intofffaraz:masterfrom
sentomk:ptn-add

Conversation

@sentomk
Copy link

@sentomk sentomk commented Nov 11, 2025

Patternia brings Rust-style match expressions to C++ with a concise and expressive DSL:

match(cmd)
  .when(ci_value("start") >> "starting")
  .when(ci_value("stop")  >> "stopping")
  .otherwise("unknown");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant