mitama-cpp-result
« Back to VersTracker
Description:
Provides `result<T, E>` and `maybe<T>` and monadic functions for them
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ header-only functional-programming error-handling monadic
Install: brew install mitama-cpp-result
About:
MitamaCppResult is a C++17/20 header-only library providing Rust-inspired `result<T, E>` and `maybe<T>` types for robust error handling. It offers comprehensive monadic operations like `map`, `and_then`, and `or_else` to streamline control flow and eliminate boilerplate code. This library helps developers write safer, more expressive, and functional-style C++ applications.
Key Features:
  • Header-only library with no external dependencies
  • Full monadic interface for `result<T, E>` and `maybe<T>` types
  • C++17/20 compliant with rich operator overloads
  • Comprehensive error handling without exceptions
  • Intuitive API inspired by Rust's standard library
Use Cases:
  • Implementing robust error handling in C++ applications
  • Functional programming patterns in C++
  • Replacing error-code based systems with type-safe alternatives
  • Creating expressive APIs for libraries
Alternatives:
  • std::expected – C++23 standard feature; MitamaCppResult provides similar functionality for C++17/20 with richer monadic operations
  • Boost.Outcome – More heavyweight Boost dependency; MitamaCppResult is header-only and lighter
Version History
Detected Version Rev Change Commit