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

Add a "rename" operation to signatures #24

Open
jonsterling opened this issue Feb 1, 2016 · 0 comments
Open

Add a "rename" operation to signatures #24

jonsterling opened this issue Feb 1, 2016 · 0 comments

Comments

@jonsterling
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant