Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Switching from C++ to Rust. Parent comment
https://en.cppreference.com/w/cpp/utility/expected
Unfortunately it does not come with nice syntax to return on error.
> Unfortunately it does not come with nice syntax to return on error.
Yeah. We use a C preprocessor macro for this, but it's a little more verbose than question-mark operator.
https://en.cppreference.com/w/cpp/utility/expected
Unfortunately it does not come with nice syntax to return on error.