Skip to content

Consider supporting named algorithm return values. #686

@mikewest

Description

@mikewest

What problem are you trying to solve?

As discussed in whatwg/fetch#1867 (comment), it's sometimes helpful (and at least somewhat common practice) to return some prose value from an algorithm that makes the result clear. For example:

These aren't well-supported by Infra. Perhaps they should be?

What solutions exist today?

No response

How would you solve it?

It seems ideal to agree on some way of representing these kinds of algorithms and their results in Infra.

Based on very little research, I'd suggest that we define "failure" in any event, and consider defining "boolean" algorithms in some way, with a set of truthy values ("Allowed", "Valid", "Success", whatever other common patterns we find) and a set of falsy values ("Blocked", "Invalid", "Failure", etc).

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