Functional exception-less error handling with C++23's optional and expected

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • scelta

    (experimental) Syntactic sugar for variant and optional types.

  • No (standard) pattern-matching or visitation on these

  • a4pdf

    Discontinued A fully color managed PDF generation library [Moved to: https://github.com/jpakkane/capypdf]

  • I just converted a freetime library to use variants. I'm developing it mostly on Linux, where the monadic versions are sadly not yet available in the stdlib, so I can't speak about the usability of those.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • expected

    C++11/14/17 std::expected with functional-style extensions

  • expected

    An implementation of expected<T, E...>, extracted from the variant2 repository (by pdimov)

  • I wrote an expected that supports more than one error type but it's not worth the bother. Just use error_code - this is what it was made for.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts