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

Check if string patterns are unreachable #4346

Merged
merged 10 commits into from
Mar 16, 2025

Conversation

giacomocavalieri
Copy link
Member

This PR expands the pattern matching decision tree to properly deal with string patterns and check if they are reachable or not. It also lays the foundation to properly do efficient code generation for string patterns, after this I'll start working on the code get part!

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Amazing work!! I've not done a proper review yet, but I've left some very small comments with the few mins I've had to look at this

@giacomocavalieri
Copy link
Member Author

Thank you! Should have addressed all the comments

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Code looks great! Really impressive work!

I've left some tiny nitpicks RE names

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Amazing!!! Thank you!!

@lpil lpil merged commit 9f44f6a into gleam-lang:main Mar 16, 2025
12 checks passed
@giacomocavalieri giacomocavalieri deleted the string-exhaustiveness branch March 16, 2025 15:48
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