Skip to content

Make returning different types more ergonomic #690

@filmor

Description

@filmor

Currently, returning differently typed terms always involves using Term<'a> and explicit encoding. One option to improve this would be to introduce a new enum AnyTerm implementing From for all term types (and types that can be unambigiously converted to terms), implementing Encoder itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions