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

Split typing from rest of type checker #2630

Open
Tracked by #3739 ...
turbolent opened this issue Jul 4, 2023 · 1 comment
Open
Tracked by #3739 ...

Split typing from rest of type checker #2630

turbolent opened this issue Jul 4, 2023 · 1 comment

Comments

@turbolent
Copy link
Member

Issue to be solved

Currently, the checker is implemented in a way where determining the type of an expression and other checks, like if an expression can be assigned to (which has e.g. the side-effect of reporting an error), is interleaved.

In certain cases it is necessary to determine the type of an expression without any checks, as the result is needed as an input for checking another expression.

Suggested Solution

Split typing, determining the type of an expression, from the rest of the expression checking.

@SupunS
Copy link
Member

SupunS commented Jun 4, 2024

Now that we are done with major changes to the type-checker, and don't have any on-going work either, probably a good time to get started on this.
I can have look and maybe draft something together, and then we can evaluate. Or do you have any specific ideas in mind?

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

No branches or pull requests

2 participants