-
Notifications
You must be signed in to change notification settings - Fork 62
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
Get or create import function #246
Labels
enhancement
New feature or request
Comments
Similiar functionality could also be useful for adding types and other types that have some level of equality. Of course type equality should also be performed for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
add_import_function
onModule
will allow adding duplicate imports, which is usually undesired.A new
get_or_create_import_function
primitive would be very useful to enable idempotent semantics and avoiding of duplicate imports. Alternatively the existingadd_import_function
could possible be extended, but we are focusing on full backwards compat on the API for the most part, preferring to deprecate APIs over changing them.The text was updated successfully, but these errors were encountered: