Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding :success as an "anomaly" category #5

Open
dgr opened this issue Aug 30, 2024 · 0 comments
Open

Consider adding :success as an "anomaly" category #5

dgr opened this issue Aug 30, 2024 · 0 comments

Comments

@dgr
Copy link

dgr commented Aug 30, 2024

A :success is not strictly an "anomaly," but it signals the absence of an anomaly when a map might be the natural return type from a given function. A model for this might be HTTP status codes, where 2xx codes indicate success, and then other categories are broken out by other first digit of the code (e.g., 1xx, 3xx, 4xx, 5xx, etc.).

The alternative to this is to first test a map for the absence of ::anom/category and then dispatch on ::anon/category. Having a :success category allows for a single test or type of test (e.g., using case).

If the idea that :success might be an "anomaly," then an alternative name might be :none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant