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

Type operator associativity #15

Open
LefterisJP opened this issue Feb 6, 2017 · 0 comments
Open

Type operator associativity #15

LefterisJP opened this issue Feb 6, 2017 · 0 comments

Comments

@LefterisJP
Copy link
Contributor

Many of the type operators should have the associative property.

As an example the sum type:
string | i32 is the same as i32 | string and yet the current implementation does not view it as such.

I suppose same goes for product types:

string, i32, bool should be equal or at least convertible (with a warning since memory layout changes?) to any other permutation like: i32, bool, string.

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