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 exponentially more complex than necessary #5

Open
AshleyYakeley opened this issue May 19, 2018 · 1 comment
Open

Type exponentially more complex than necessary #5

AshleyYakeley opened this issue May 19, 2018 · 1 comment

Comments

@AshleyYakeley
Copy link

In the demo, I tried let rec x = {f1=x} and got x : ({f1 : rec a = ({f1 : a})}). This seems correct, but wouldn't x : rec a = {f1 : a} be simpler?

I also tried let rec x = {f1=x;f2=x;f3=x;f4=x;f5=x;f6=x;f7=x} and got a huge type expression, apparently exponential in the number of fields. I think this is just x : rec a = {f1 : a, f2 : a, f3 : a, f4 : a, f5 : a, f6 : a, f7 : a}?

@stedolan
Copy link
Owner

This has actually been fixed for a while, but I never got around to updating the version on the website.

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