Show HN: Patternia – A compile-time pattern matching DSL for C++

3 pointsposted 12 hours ago
by sentomk

1 Comments

sentomk

12 hours ago

This is my first time posting about my open-source project here — it’s called Patternia, a header-only compile-time pattern-matching DSL for modern C++.

It provides a clean and expressive syntax for writing match expressions, all evaluated entirely at compile time with zero runtime overhead.

I’d love to hear your feedback — especially on performance, syntax feel, and any compiler corner cases you might find.

More updates are coming soon as I keep tuning and polishing the internal.