3 ms·
Boxed error typed like Result in rust, or optional in c++ are what go needs.
by maccard 3y ago
Boxed error typed like Result in rust, or optional in c++ are what go needs.
- tialaramex 3y agoC++ std::optional is not an error type. It's a (slower, bigger, less capable) Option. The C++ type intended to be similar to Rust's Result is std::expected
- maccard 3y agoThanks, sorry. std expected is exactly what I should have said. I didn't see your reply until after the edit window though.