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

sub-trait, intersected-trait #12

Open
JeffreySarnoff opened this issue Oct 19, 2016 · 1 comment
Open

sub-trait, intersected-trait #12

JeffreySarnoff opened this issue Oct 19, 2016 · 1 comment

Comments

@JeffreySarnoff
Copy link

Need to consider whether it makes sense to have subtraits or whether an
intersection would be better.

Without considering the interapplication of types, some uses differ. This arises from parentage, a subtrait has one parent and an intersected trait has one or more parents. Both can be used to specialize; subtrait specialization constrains the expression of its parent and ?intertrait specialization expresses the constraint of its parents.

@mauro3
Copy link
Owner

mauro3 commented Oct 20, 2016

Note that traits can have several super-traits.

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

2 participants