Skip to content

Add Any type, use for task failure and Result #9881

@brson

Description

@brson

This needs further debate.

The most obvious use case for ~Any is for dealing with arbitrarily typed error values. Add it to std, use it for task failure.

Consider changing the Err variant of Result to take ~Any. This would allow monad-style error chaining to work much better since all Results have the same error type.

cc #61, #2408

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions