Skip to content

In expected and sum add support for sum<>, which cannot be constructed #53

Closed

Description

@Bronek

We need sum<> to work e.g. as expected<T, sum<>> ; in such type we can only construct the value side, but not the error side. This means (opposed to optional) such monad is guaranteed to always have value, even if that value is a void. Such sum<> can be even copyable, it just cannot be constructible.

Activity

  1. added
    enhancement
    on Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions