Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Add a "rename" operation to signatures #24

@jonsterling

Description

@jonsterling

This operation should take every free symbol (basically, the operator ids) and rename it by some operation (such as a qualifying prefix like fn x => "mylib#" ^ x, etc.). This shall properly be applied in each declaration, etc.

We can use this as a poor-man's support for namespacing. Longterm, we can introduce a new implementation of the SYMBOL signature that includes some path structure in it.

We might want to add an operation to ABT to support mapping a function over the free names in a term, since currently you have to manually substitute each one, which could be fairly inefficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions