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

Sound and improved treatment of polymorphism and type variables #118

Open
LPTK opened this issue Jul 13, 2022 · 0 comments
Open

Sound and improved treatment of polymorphism and type variables #118

LPTK opened this issue Jul 13, 2022 · 0 comments
Labels
enhancement New feature or request soundness

Comments

@LPTK
Copy link
Contributor

LPTK commented Jul 13, 2022

We should not generalize non-function values, which is unsound in the presence of mutation.

Also, it would be good to handle all 'a variables as rigid and have a different ?a syntax for flexible ones.

Also, we should be able to refer to the same variables across type annotations in a given def. So we should store type variables in the typing context, not just in an inner map of typeType2.

@LPTK LPTK added soundness enhancement New feature or request labels Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request soundness
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant