You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 typeT
or an error/status code of typeE
. 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
The text was updated successfully, but these errors were encountered: