-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add field access simplification for if/then/else #40
Conversation
If merged this would close #33 |
Rebased |
Hey @miniBill I'm not sure what the state of this PR is. I don't think the direction this is heading towards is the one. I think that this would make sense if we notice that in every branch, we can end up simplifying the pattern, but not otherwise. What do you think? |
It seems like a reasonable restriction! It's uniform, non-surprising, and should have very few false positives! |
Ok, I've restricted the simplification to the case where all leaves are records, record updates or record accesses |
Looks good, thank you very much for your work and patience @miniBill 🙏 😊 |
Happy to have it merged ^_^ |
Partially fixes #33