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

Internal changes to prepare for refactor #108

Merged
merged 30 commits into from
Jan 30, 2024
Merged

Internal changes to prepare for refactor #108

merged 30 commits into from
Jan 30, 2024

Conversation

saulshanabrook
Copy link
Member

This PR should result in mostly the same end-user behavior. It's goal is to prepare for a larger API breaking change, where functions and classes are no longer tied to a particular EGraph, but instead are automatically defined whenever they are used in an EGraph.

This also means we can get rid of the concept of "Modules" and simply use named rulesets exclusively for differing semantic behavior.

Since this is quite a large change, I opted to make this PR preserve the old API while getting the machinery in place to rework things easily.

It also adds one feature, now default arguments to functions will be upcasted if necessary.

@saulshanabrook saulshanabrook merged commit dea4390 into main Jan 30, 2024
8 of 9 checks passed
@saulshanabrook saulshanabrook deleted the change branch January 30, 2024 21:02
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.

1 participant