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

Underscore type params #266

Open
allanderek opened this issue Oct 25, 2024 · 0 comments
Open

Underscore type params #266

allanderek opened this issue Oct 25, 2024 · 0 comments
Labels
language proposal proposal of a major feature to the language

Comments

@allanderek
Copy link
Contributor

Allow underscore as a type parameter when we do not need the type parameter to match any thing. It would be analogous to using an underscore for a value parameter that we don't use. For example:

listLength : List _ -> Int

As opposed to

listLength : List a -> Int

I think the underscore more clearly conveys the meaning of "This isn't important".

@robinheghan robinheghan added the language proposal proposal of a major feature to the language label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language proposal proposal of a major feature to the language
Projects
None yet
Development

No branches or pull requests

2 participants