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

Please, closure on language expression types & inference #973

Open
Anton-Latukha opened this issue Jul 16, 2021 · 2 comments
Open

Please, closure on language expression types & inference #973

Anton-Latukha opened this issue Jul 16, 2021 · 2 comments

Comments

@Anton-Latukha
Copy link
Collaborator

Anton-Latukha commented Jul 16, 2021

Currently, Nix Type inference is a completely separate type subsystem from language semantics:

simple
On: (2021-05-31)

Notice there are Expr.Types that are language basis & Type.Type that is an inference basis.

They are completely separate currently. It is redunculous that Type.Type does not have ANY import from HNix.

They (Expr.* -> Types.*) need to share the maximum types. It would lead to #187 almost directly.

A good start is variable names.

In the type system, variable names are variable names.

@Anton-Latukha
Copy link
Collaborator Author

Also Lint type system seems strongly related to Type.Type inference.

@Anton-Latukha
Copy link
Collaborator Author

#294 is a first stage.

See: johnchildren@7065a91

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

No branches or pull requests

1 participant