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

Record contracts #402

Open
jackfirth opened this issue Jan 22, 2020 · 0 comments
Open

Record contracts #402

jackfirth opened this issue Jan 22, 2020 · 0 comments
Labels
contracts This is related to the contract system enhancement New feature or request needs api design The public API changes for this feature aren't yet designed

Comments

@jackfirth
Copy link
Owner

There should be contract combinators for rebellion/collection/record. Use cases:

Racket resolves this with separate combinators like list/c and listof, but I always found that confusing. It also doesn't work well when some fields are known but not all (see list*of and *list/c). Maybe an ellipses-based solution would work instead?

@jackfirth jackfirth added enhancement New feature or request needs api design The public API changes for this feature aren't yet designed contracts This is related to the contract system labels Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts This is related to the contract system enhancement New feature or request needs api design The public API changes for this feature aren't yet designed
Projects
None yet
Development

No branches or pull requests

1 participant