Skip to content

Strategy for inventing fresh names #55

Open

Description

@hrutvik

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.

Activity

  1. added
    enhancement
    on Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    back endenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions