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

fix: use labelled arguments instead of functors #99

Merged
merged 1 commit into from
Aug 23, 2022
Merged

Conversation

favonia
Copy link
Collaborator

@favonia favonia commented Aug 16, 2022

This PR implements the Thought of using labelled arguments.

The main thing I am not sure of is that handlers are optional to Modifier.run in this PR---by default, it would simply ignore all the algebraic effects. (That is, shadowing will be silent, "name not found" will be ignored, and hooks are skipped.) Is it a good design to allow users to omit those handlers and default to the "silencing" handlers? The obvious alternative is to make them mandatory.

@favonia favonia merged commit 256b5e7 into main Aug 23, 2022
@favonia favonia deleted the collapse-functor branch August 23, 2022 01:36
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