-
-
Save rightfold/4d79d46b7b9cdf7c8102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto instance = try | |
{ some(my::Type{1, true, "hello"}); } | |
catch (/* error */) { none } | |
match (instance) { | |
some(instance) => | |
std::cout << instance << std::endl; | |
return EXIT_SUCCESS; | |
none => | |
return EXIT_FAILURE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment