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

Refinement types #123

Closed
4 tasks
brendanzab opened this issue Nov 1, 2018 · 1 comment
Closed
4 tasks

Refinement types #123

brendanzab opened this issue Nov 1, 2018 · 1 comment
Labels
A-type-system C-feature obsolete Cleaning up the backlog on 2020-10-09.

Comments

@brendanzab
Copy link
Member

brendanzab commented Nov 1, 2018

This will be needed to distinguish the prefixes of variants in union types (#118), and will allow us to move some more things from doc comments into types in the OpenType spec.

I'm proposing the following implementation process:

  • Add the syntax and type checking rules for: { <ident> : <type> | <boolean-predicate> }
  • Add check for the boolean predicate while parsing, failing the current parse if it evaluates to false
  • (Mid term) Add syntactic sugar for record fields with operator expressions
  • (Long term) Add constraint solving (Constraints #105)
@brendanzab brendanzab changed the title Conditional types Refinement types Nov 7, 2018
@brendanzab
Copy link
Member Author

Useful resources:

@toothbrush toothbrush added the obsolete Cleaning up the backlog on 2020-10-09. label Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system C-feature obsolete Cleaning up the backlog on 2020-10-09.
Projects
None yet
Development

No branches or pull requests

2 participants