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
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