Alternatives
Products that do what Cppmatch – Rust-Like Pattern Matching and Error Handling for C++ does
I've created cppmatch, a lightweight, header-only C++ library that brings Rust-inspired pattern matching and error handling to C++. It tries to imitate the functionality of the questionmark (?) operator in C++ by using a macro that uses the gcc extension https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html This allows to create exceptionless code with non-intrusive error-as-value that unlike Exceptions, makes it clear which kinds of error a function can generate and forces you to handle (or ignore) them. The ? operator translates to *expect* To handle the errors I…
- Not indexed yet — check back in a few minutes.
Ranked by how close each launch is in meaning, then by votes. Refine with a description →