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

[WIP] Purity inference #7170

Draft
wants to merge 49 commits into
base: main
Choose a base branch
from
Draft

[WIP] Purity inference #7170

wants to merge 49 commits into from

Conversation

agu-z
Copy link
Collaborator

@agu-z agu-z commented Oct 17, 2024

Not quite ready for review yet, but only a few more cases to cover!

Type checking and errors preview:
https://www.youtube.com/watch?v=5a3r88-oEQQ

@ayazhafiz
Copy link
Member

ayazhafiz commented Oct 17, 2024 via email

Moves the "STATEMENT AFTER EXPRESSION" error from the parser to canonicalization.
We'll later use this to allow this case in effectful functions.
This reverts commit 52896d9fa65141df832989b326f526cbedf67341.

We actually still need this for when `!` follows a non-ident expr
IdentId will now reserve the MSB for flagging whether the ident
is suffixed with a `!`.
We will use this later to constrain identifiers to be effectful or pure.
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

Successfully merging this pull request may close these issues.

2 participants