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

Resugaring/printing called during normal checking #3315

Open
mtzguido opened this issue Jun 14, 2024 · 0 comments
Open

Resugaring/printing called during normal checking #3315

mtzguido opened this issue Jun 14, 2024 · 0 comments
Assignees

Comments

@mtzguido
Copy link
Member

This is not really observable (unless the printing raises an exception) but the typechecker will routinely render terms to put into error message guards, which is probably very wasteful. Giving that resugaring/printing should be pure, we could thunk these computations and be more efficient in the vast majority of cases that do not raise an error.

@mtzguido mtzguido self-assigned this Jun 14, 2024
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