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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Error

Error

Photo of handling

handling

Photo of Rust

Rust

Related news:

News photo

That Time I Recreated Photoshop in C++

News photo

Is Rust a good fit for business apps?

News photo

Show HN: AudioNimbus – Steam Audio's immersive spatial audio, now in Rust