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

Check if type variable section needs to be updated #1116

Closed
camelid opened this issue Apr 27, 2021 · 0 comments · Fixed by #1145
Closed

Check if type variable section needs to be updated #1116

camelid opened this issue Apr 27, 2021 · 0 comments · Fixed by #1145
Labels
E-easy Difficulty: might be a good place for a beginner E-help-wanted Call for participation: extra help is wanted

Comments

@camelid
Copy link
Member

camelid commented Apr 27, 2021

This section on type variables was written in 2018 (or earlier), and we should check to make sure it is up to date. That would likely involve asking the compiler team on Zulip (in #t-compiler).

src/type-inference.md

All told, the inference context stores four kinds of inference variables
(as of January 2018):

  • Type variables, which come in three varieties:
    • General type variables (the most common). These can be unified with any
      type.
    • Integral type variables, which can only be unified with an integral type,
      and arise from an integer literal expression like 22.
    • Float type variables, which can only be unified with a float type, and
      arise from a float literal expression like 22.0.
  • Region variables, which represent lifetimes, and arise all over the place.

cc #1121

@camelid camelid added E-help-wanted Call for participation: extra help is wanted E-easy Difficulty: might be a good place for a beginner labels Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Difficulty: might be a good place for a beginner E-help-wanted Call for participation: extra help is wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant