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 let expressions in encoding to reduce redundancy #533

Closed
wants to merge 21 commits into from

Conversation

Felalolf
Copy link
Contributor

This should be merged after: #531

This PR is a first attempt to make use of let expressions in the encoding more often.
The main contribution of this PR are the value function of the type encoding and the two bind functions.

Currently, it is unclear at which points we should transform an expression writer to an expression, and thus "discharge" the accumulated let expressions. For now, my idea was to use pure whenever one of the new bind methods is used in the encoding of expressions. An alternative is, similar to statements, to use pure at finalExpression in the type encoding.

@Felalolf Felalolf closed this Sep 30, 2022
@Felalolf Felalolf deleted the felix-let-2 branch September 30, 2022 15:20
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.

1 participant