Result in C++
Hello folks,
Rust developer since more than 8 years ago, I really annoyed when I use other languages without Result/Option API. In C++ we have std::optional (since c++17) and std::expected (since c++23) but I don’t think it’s really convenient. This how I decided to create cpp_result, a more ergonomic API which try to mimic Rust Result type. Macros are also provided to mimic the ? operator. Any feedback is very welcomed.
Documentation: https://jarsop.github.io/cpp_result