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

Use OCaml compiler infastructure to infer types when sanitizing programs #11

Open
kiranandcode opened this issue May 4, 2022 · 0 comments
Labels
long-term Longer term requests

Comments

@kiranandcode
Copy link
Collaborator

We currently side-step the problem of type inference by requiring that every let binding must be explicitly annotated:

let (x: int) = length l in
...

This works, but is not ideal because it means we have to modify the programs a little.

Seeing as we're already using the compiler infrastructure in other parts of the project, we should be able to make the sanitization process more general by using the compiler to infer types for every binding, instead of using a syntactic restriction.

@kiranandcode kiranandcode added the long-term Longer term requests label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
long-term Longer term requests
Projects
None yet
Development

No branches or pull requests

1 participant