Skip to content

Multiple Parameter Lists #227

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 5 commits into from
Oct 31, 2024
Merged

Multiple Parameter Lists #227

merged 5 commits into from
Oct 31, 2024

Conversation

FlandiaYingman
Copy link

No description provided.

@FlandiaYingman FlandiaYingman changed the title [WIP] Multiple Parameter Lists Multiple Parameter Lists Oct 31, 2024
@FlandiaYingman FlandiaYingman marked this pull request as ready for review October 31, 2024 04:33
@FlandiaYingman FlandiaYingman requested a review from LPTK October 31, 2024 04:33
Previsouly `Apps` unapplies the tree of form `App(App(App(id: Ident, p1), p2), p3)` to `Apps(id: Ident, p1 :: p2 :: p3 :: Nil)`. Now it unapplies this as well but also `App(App(App(tree: Tree, p1), p2), p3)` to `Apps(tree: Tree, p1 :: p2 :: p3 :: Nil)`. This is especially useful for type parameters as we want to unwarp as many of layers of `App` as we can, then unwrap the `TyApp`.
Copy link
Contributor

@LPTK LPTK left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Please address my comment.

Also, it looks like I missed one file when making de0b196. To remove the inconsistency between the output of different machines, change:

-globalThis
+:slient
+globalThis

in GlobalThis.mls.

The member `params` is renamed to `paramLists` to reflect its new behavior. The type of `paramLists` is changed from `Opt[Ls[Tree]]` to `Ls[Tup]` to reflect its new behavior. It now returns a list of parameter tuples instead of a list of parameters.
@FlandiaYingman
Copy link
Author

Done

@LPTK
Copy link
Contributor

LPTK commented Oct 31, 2024

What. There are no changes printed by git diff-files -p but it still returns exit code 1. No idea why.

@LPTK LPTK merged commit 4232f6f into hkust-taco:hkmc2 Oct 31, 2024
1 check failed
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