Skip to content

Parameters with multiple types #654

@recvfrom

Description

@recvfrom

What problem are you trying to solve?

It'd be helpful if the infra spec section on algorithm parameters mentioned how to have a parameter have two types (for instance, a type or failure, or a type and string). It seems like this is somewhat common

What solutions exist today?

It's possible to pass in two optional parameters and have the caller only set one of them, although it's less immediately clear that the two are mutually exclusive.

How would you solve it?

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    addition/proposalNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions