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

Remove legacy naive match-to-case compiler #3003

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Sep 7, 2024

Removes the naive match-to-case transformation.

@janmasrovira janmasrovira merged commit 5675b4f into main Sep 8, 2024
4 checks passed
@janmasrovira janmasrovira deleted the remove-naive-match-compiler branch September 8, 2024 09:59
lukaszcz added a commit that referenced this pull request Sep 9, 2024
* Closes #2804 
* Requires #3003
* Front-end syntax for side conditions was implemented in #2852. This PR
implements compilation of side conditions.
* Adds side-conditions to `Match` nodes in Core. Updates Core parsing,
printing and the evaluator.
* Only side-conditions without an `else` branch are allowed in Core. If
there is an `else` branch, the side conditions are translated in
`fromInternal` into nested ifs. Because with `else` the conditions are
exhaustive, there are no implications for pattern exhaustiveness
checking.
* Adjusts the "wildcard row" case in the pattern matching compilation
algorithm to take into account the side conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants