Add a chk package for checked types #2743
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The package name is intentionally very short because it will be included in function and method signatures and the code may become unwieldy if the package name is something like constraints.
The motivation for attempting to add a package like this was born out of wanting to simplify some code in the bold repo where we were checking that virtual > 0 in way too many places. But, I think this could be generally useful and would like to have it in the nitro repository so we can start adopting it in the codebase. Alternatively, if we think it would be a generally useful library, we could pull it out into a small repository and let it stand on its own.
The main purpose of the pull request is to see if we have a collective desire to use this kind of library, and, if so, where we would like it to live.