Skip to content
This repository has been archived by the owner on May 20, 2018. It is now read-only.

Replace Term with a typealias of AnnotatedTerm<()> #168

Open
robrix opened this issue Nov 7, 2015 · 1 comment
Open

Replace Term with a typealias of AnnotatedTerm<()> #168

robrix opened this issue Nov 7, 2015 · 1 comment

Comments

@robrix
Copy link
Contributor

robrix commented Nov 7, 2015

Term is a special case of AnnotatedTerm<Annotation> where Annotation effectively carries no information, e.g. Annotation = ().

We could further rename AnnotatedTerm to Term, but that would require us to update all extant references to Term to instead name Term<()>.

@robrix
Copy link
Contributor Author

robrix commented Dec 12, 2015

  1. We would probably have to say Unit instead of () where Unit is an empty struct conforming to Equatable.
  2. We’d lose Equatable on Term, which might be a pain.

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

No branches or pull requests

1 participant