logoalt Hacker News

ameliaquiningtoday at 1:01 AM0 repliesview on HN

C++23 introduces std::expected, which is a simpler alternative to std::variant designed specifically for the result-or-error use case. You still don't get pattern matching, but Go-style tuples don't give you that either.