-
Notifications
You must be signed in to change notification settings - Fork 54
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
Subsumption confusing semantics #462
Comments
I don't have a strong opinion on which semantics is preferable. I do agree maybe it would make sense to add it. I am curious, is this from just experimenting, or in your use case do you often try to subsume things that don't yet exist? |
I ran into a bug in eggcc that was a result of me misusing subsumption. I actually thought the semantics was to add it |
I'm actually surprised about this behavior, because
I believe
|
Sounds good to fix it. I would assume it works like delete/set as well. |
Subsumption currently works kind of like a query and kind of like an action. For example, this code:
(Subsume (Add (Add 2 3) 4))
Adds
(Add 2 3)
to the database. However, if(Add (Add 2 3) 4)
isn't present, it errors out because it couldn't find an existing entry.Is this the behavior we want? Perhaps we wanted subsumption to first add the tuple, then subsume it?
The text was updated successfully, but these errors were encountered: