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

Make constructors explicit in core and ff. #331

Closed
b-studios opened this issue Dec 4, 2023 · 0 comments
Closed

Make constructors explicit in core and ff. #331

b-studios opened this issue Dec 4, 2023 · 0 comments

Comments

@b-studios
Copy link
Collaborator

b-studios commented Dec 4, 2023

Constructor calls are currently represented by PureApp nodes in the core tree and following representations.

This would be a bit more symmetrical to how the introduction and elimination of codata/objects (new) is treated.

Note that optimizations (case-of-known-case etc.) are currently possible without making constructors explicit, since we can just compare the symbols.

This works, since free variables in core (such as data types and constructors) are not renamed (which is the case for bound local variables) and the PureApp and the Match thus still point to the constructor symbol.

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

1 participant