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

Add Union/Intersection types #16

Open
3 tasks
WillBAnders opened this issue Apr 20, 2023 · 0 comments
Open
3 tasks

Add Union/Intersection types #16

WillBAnders opened this issue Apr 20, 2023 · 0 comments

Comments

@WillBAnders
Copy link
Contributor

Union and intersection types are helpful utilities for composing types. Unions are particularly helpful for addressing simple variations in allowed arguments as well as better type inference. Intersections are less common but can be useful for higher level abstractions and combining interfaces.

  • Implement union types
  • Implement intersection types
  • Address unification via subtypes or unions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant