Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Experimental Outcome for error handling #103

Open
6 of 7 tasks
PatrickKa opened this issue Jun 17, 2023 · 0 comments
Open
6 of 7 tasks

Use Experimental Outcome for error handling #103

PatrickKa opened this issue Jun 17, 2023 · 0 comments

Comments

@PatrickKa
Copy link
Contributor

PatrickKa commented Jun 17, 2023

Description

After some evaluation, I decided that we should use the Outcome library for error handling, specifically standalone Experimental Outcome. Despite the name, it is very mature and preferred by the author. Most importantly, it can be used on embedded systems just by defining the BOOST_OUTCOME_SYSTEM_ERROR2_NOT_POSIX macro.

What "using Experimental Outcome" means is basically that we use experimental::status_result<T, E> as return types that either hold a valid value of type T or an error/status code of type E. Of course this also involves a bit more boilerplate, magic, and sugar but the end result will be nice.

Edit: Remove #237 from to-do list since it turned into its own epic.

To do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants