Skip to content

No longer generate extra atoms to compare generic types #655

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

Merged
merged 17 commits into from
Aug 9, 2021

Conversation

kyleheadley
Copy link
Member

Originally, to compare function outputs with other constraints, we used the function's CV, which may have been generic. This made comparisons tricky, so extra atoms were added to fill out the type, but it resulted in over-constrained, no-longer-generic functions.

Now we use the type variable data already being collected to determine function output in a context-sensitive way. Most of this PR is about propagating that existing type variable information to other parts of the code-base.

Copy link
Collaborator

@aaronjeline aaronjeline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more quick thing I noticed

@kyleheadley
Copy link
Member Author

This should be ready for review again, I believe I've addressed all the comments above. Let me know if there are still changes requested or if I'm good to merge.

Copy link
Member

@mattmccutchen-cci mattmccutchen-cci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit.

Co-authored-by: Matt McCutchen (Correct Computation) <[email protected]>
@mattmccutchen-cci mattmccutchen-cci dismissed their stale review August 6, 2021 18:51

My comment was addressed.

@kyleheadley
Copy link
Member Author

@aaronjeline I believe you still have an outstanding request for changes. Was there something else you asked me to do here or are we good to merge?

@aaronjeline
Copy link
Collaborator

Good to merge

@kyleheadley kyleheadley merged commit c3d3e5d into main Aug 9, 2021
@kyleheadley kyleheadley deleted the no_extra_atoms branch August 9, 2021 16:40
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

Successfully merging this pull request may close these issues.

4 participants