-
Notifications
You must be signed in to change notification settings - Fork 1
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
enforce that we don't add vars twice to env Gamma #10
Comments
Isn't it okay for the same variable name to be in there more than once, since we pick the first one we encounter, if it's there? Is it in correlation with the constructors, where you can "overwrite" the definition of one of the constructors? |
this was in reaction to
Thought, if we just raised an exception for duplicate entries, this would be a simple solution for name clashes. |
I think it's fine for regular variables that can be let bound. I've updated the data type PR to try to account for the issue. This should prevent 'overriding' constructor names |
Currently, we don't check if a var is already in Gamma before adding it. We could check and throw an error if it is already present.
The text was updated successfully, but these errors were encountered: