Skip to content

Support for 'std::optional' #313

Open
@jonathon-bell

Description

The function rc::gen::maybe lifts a generator into the Maybe monad, which can be quite useful.

C++17 finally introduced its own version of Maybe to the standard library, namely std::optional.

Would there be any interest here in a submission that provides support for this addition to the language for compilers that can support it? rc::gen::optional, perhaps? If so, I'd be happy to contribute.

Cheers,

Jonathon

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions