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

Improve compiler error messages for when pattern matching on functions #7570

Open
jeffnm opened this issue Feb 2, 2025 · 0 comments
Open

Comments

@jeffnm
Copy link
Contributor

jeffnm commented Feb 2, 2025

If one of the types is a function and the other is a value, print a message saying "did you forget to call that function?"

That might still be confusing, since it looks to a novice like they've called it and are operating on a result. Since not all languages require an argument to all functions, I think an additional comment about that might be helpful if the type is {} => ...

Zulip discussion

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

No branches or pull requests

1 participant