Skip to content

Conversation

@jordan-woyak
Copy link
Member

Our Common::Result is very similar to C++26's std::expected, but we have the template parameters swapped, which I think is confusing.

I think (Expected, Unexpected) parameter order is less confusing in general.

Also:
Made all member functions constexpr.
Added moving "unexpected" conversion constructor for consistency.

…::expected, make all member functions constexpr, and add moving "unexpected" conversion constructor for consistency.
Copy link
Contributor

@iwubcode iwubcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants