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

Improving the Types Example #2

Open
DavePearce opened this issue Jun 17, 2015 · 0 comments
Open

Improving the Types Example #2

DavePearce opened this issue Jun 17, 2015 · 0 comments

Comments

@DavePearce
Copy link
Member

The benchmark examples/types/ has quite a number of limitation which it would be nice to address. For example, it won't simplify (int,int)|(any,int). Similarly, it won't simplify (int,int)&(int,(int,int)) either.

The reason for this is that it needs to handle protons properly. However, handling protons in the presence of recursive types is not straightforward. For example, these types cause a problem \X.(int|X,int) or \X.(int|(X,int),int), etc.

Essentially, in the presence of recursive types, it becomes unclear what exactly the normal form is. In the original paper, we pull unions out all the way to the "top". But, in a recursive type system, there is no "top" per se.

@DavePearce DavePearce changed the title Update Types Example Improving the Types Example Jun 17, 2015
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

1 participant