diff --git a/developer-handbook.md b/developer-handbook.md index 2a63ba91..cc668ba0 100644 --- a/developer-handbook.md +++ b/developer-handbook.md @@ -227,6 +227,14 @@ int caller5(int i) { int caller6(int i) { return foo(i).unwrapThrow(); // unwrap will throw if there is an error } + +int caller7(int i) { + return foo(i).or_value(0); // will return 0 if foo returned an error +} + +ox::Result caller8(int i) { + return foo(i).to(); // will convert the result of foo to uint64_t +} ``` Lastly, there are a few macros available to help in passing ```ox::Error```s