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

Implement a type checker in the interpreter #7

Open
osa1 opened this issue Jul 3, 2024 · 0 comments
Open

Implement a type checker in the interpreter #7

osa1 opened this issue Jul 3, 2024 · 0 comments

Comments

@osa1
Copy link
Contributor

osa1 commented Jul 3, 2024

Generally we should avoid adding features to the interpreter that won't make the bootstrapping easier.

However implementing a compiler without type checking will be difficult, and we won't have a good debugging tools when things go wrong. So I think we need a type checker.

The type checker in the interpreter can be simpler than the type checker in the bootstrapped compiler. For example, we can probably get away with not having higher-kinded types.

We can also avoid polymorphic anonymous types (just have simple records and variants, or maybe only records).

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