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

Strategy for inventing fresh names #55

Open
hrutvik opened this issue Jul 4, 2023 · 0 comments
Open

Strategy for inventing fresh names #55

hrutvik opened this issue Jul 4, 2023 · 0 comments
Labels
back end enhancement New feature or request

Comments

@hrutvik
Copy link
Collaborator

hrutvik commented Jul 4, 2023

Currently, we use an unusual strategy for inventing fresh names: we append sequential numbers to a base name in the hope we produce something fresh, and if we fail we simply create a name longer than any we know. This is partly to ensure the definition is translatable: we can't require map_ok to hold of the set of known variable names.

An alternative approach does not require map_ok, as long as it can override the comparison function used in the map. This issue is about fleshing out this approach to produce nicer variable names, getting it translated, and replacing the existing unusual approach.

@hrutvik hrutvik added enhancement New feature or request back end labels Jul 4, 2023
@hrutvik hrutvik added this to the Refactoring and clean-up milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back end enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant