do not click

Meeting C++ 2020   |  Online   |  Training   |  Survey   |  Advertising   |  Jobposting   |  Login

Meeting C++ online - Functional Error and Optional-value Handling with STX

Conference | Get your ticket | Sponsoring | Sponsored Tickets | Set your timezone

Basit Ayantunde

Scheduled for 22:30

Error-handling is arguably the most divergent part of C++. Many coding guidelines partially allow exceptions or totally ban it and this leads to many projects supporting multiple error-handling interfaces such as exceptions, the error-prone c-style error-handling, and/or custom error-handling types. This also leads many C++ developers to not use exceptions and instead roll their in-house error and optional-value handling facilities which are duplicated across the ecosystem.

This divergence has birthed numerous projects like boost.expected, boost.outcome, boost.leaf, tl::optional, tl::expected, and many others that have done a great job at addressing these issues.

This talk introduces STX; a C++ library that tries to address some of these concerns with error and optional-value handling in the C++ ecosystem and also tries to unify some of these efforts/implementations.

STX performs optional and error handling via the functional monadic types: Result and Option, and features a centralized fail-fast abandonment mechanism: panic, whilst also providing utilities to make inspecting these errors easy.

This talk will also be comparing STX's error and optional-value handling technique to other widely used alternatives.

We will also be discussing more on the monadic nature of these types and how they make error and optional-value handling trivial.

Please login to comment

Copyright Meetingcpp GmbH Imprint Piwik Opt out Privacy Policy