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

[Refactor] Move unify and variants into their own trait #1469

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

yannham
Copy link
Member

@yannham yannham commented Jul 20, 2023

We implement unification on three different types (types, record rows and enum rows). Instead of having three free-standing functions unify_xxx, this PR creates one Unify trait and implement it for those types. As it's implemented on self, it also re-order the arguments to make more sense, such that the unified type are in sequence in the method call (the target type is the first argument).

Beside the trait definition and argument re-ordering, this PR is just moving code around.

@github-actions github-actions bot temporarily deployed to pull request July 20, 2023 17:26 Inactive
@yannham yannham force-pushed the refactor/typecheck-unif-module branch from 83603a6 to 79db528 Compare July 21, 2023 09:27
Base automatically changed from refactor/typecheck-unif-module to master July 21, 2023 11:29
@yannham yannham enabled auto-merge July 21, 2023 13:29
@github-actions github-actions bot temporarily deployed to pull request July 21, 2023 13:33 Inactive
@yannham yannham added this pull request to the merge queue Jul 21, 2023
Merged via the queue into master with commit 77ec9a0 Jul 21, 2023
4 checks passed
@yannham yannham deleted the refactor/unify-trait branch July 21, 2023 14: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.

2 participants