solodon4/Mach7
Functional programming style pattern-matching library for C++ observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4482
- days_rel: n/a
- days_push: 1776
- n_releases_24m: 0
Adoption not part of the score
1319 stars · 76 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Mach7 is a C++ library providing functional-programming-style pattern matching, supporting user-definable patterns, algebraic data types, and matching on open class hierarchies. It is implemented as a header-only library that brings ML/Haskell-like match expressions to C++ without language changes.
Use cases
- pattern matching in C++
- decompose algebraic data types in C++
- replace visitor pattern with match expressions
- match on class hierarchies without modifying them
- write functional-style code in C++
- destructure objects with nested patterns
When to choose
- you need expressive pattern matching on variants or class hierarchies in C++
- you want to simplify visitor-pattern-heavy code
- you need open class hierarchies that patterns can match without inheritance changes
- you want a header-only, dependency-free solution
When to avoid
- your compiler supports C++17/23 std::variant and std::visit or built-in pattern matching proposals
- you need a library with active development and recent maintenance
- you require a permissively licensed dependency (license is non-standard)
- you work in a codebase with strict compiler requirements that Mach7's template tricks may not satisfy
Facets
library · maturity maintenance
parser programming-language programming-languages developer-tools cpp cross-platform windows pattern-matching algebraic-data-types visitor-pattern variant functional-programming header-only open-class-hierarchies algorithms linux macos
1 source
- readme: https://github.com/solodon4/Mach7 · fetched 2026-08-28 · 152e6a46804f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| solodon4/Mach7 | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem