Get the latest tech news
Show HN: Cppmatch – Rust-Like Pattern Matching and Error Handling for C++
Contribute to Rucadi/cpp-match development by creating an account on GitHub.
A lightweight header-only Clang/GCC compatible C++ library for expressive pattern matching and error handling. It allows to defer the error-checking to the point where it is really important while ensuring that all the error options are handled. Requirements: The function using expect must return a Result type to handle the error case properly.
Or read this on Hacker News