awesome-cpp icon indicating copy to clipboard operation
awesome-cpp copied to clipboard

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

Open sentomk opened this issue 2 months ago • 0 comments

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");

sentomk avatar Nov 11 '25 08:11 sentomk