Skip to content

Extend the verbs with a type-indexed form #341

Description

@Bronek

Follow-up to #268, split out of #339 so the lower-level apply/apply_type primitives (release-0.1) ship ahead of the verb layer; this item is intended for release-0.2.

Per the #268 scope refinement: monadic types do not grow *_type member families; the type-indexed monadic form belongs to the verb layer — another form/name/specialization of the existing verbs (transform, and_then, …) whose callback receives the tag plus the unpacked content, composing in pipelines as the verbs do. Open design questions: the spelling (a distinct verb name vs detection of tag-taking arms in the existing verbs), which verbs participate, and the interaction with the graded (collapsing) result computation.

Builds directly on the #268 machinery — the _apply_type_fn adapter and the tagged trait families are the intended foundation — and on the tag vocabulary: std::in_place_type_t on sum/choice (#268) plus the constructor tags #339 adds for optional and expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrelease-0.2Planned for release 0.2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions