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

More warnings about unused effects #735

Open
phischu opened this issue Dec 10, 2024 · 0 comments
Open

More warnings about unused effects #735

phischu opened this issue Dec 10, 2024 · 0 comments
Labels
area:typer feature New feature or request

Comments

@phischu
Copy link
Collaborator

phischu commented Dec 10, 2024

We should consider warning users when an effect is not used. I can think of the following two situations where we might want additional warnings:

def foo(): Int / emit[Int] = 42

Here we annotated that we use an effect but don't.

def bar() = boundary { () }

Here we use a "handler function" boundary which handles a stop effect but don't actually use the handled effect stop.

@phischu phischu added feature New feature or request area:typer labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:typer feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant