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

Note annotation requirements in let and where #350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

milesfrain
Copy link
Contributor

Inspired by purescript/purescript#3922
This might be too nitty-gritty for initial reference, but I think this should be documented somewhere. If these details exist in another location, it should at least be discoverable from the let/where reference section.

Inspired by purescript/purescript#3922
This might be too nitty-gritty for initial reference, but I think this should be documented _somewhere_. If these details exist in another location, it should at least be discoverable from the `let`/`where` reference section.
@hdgarrood
Copy link
Collaborator

I think the language reference is the correct place to note this, but this isn’t to do with syntax, so I don’t think it should go in the Syntax.md file.

@JordanMartinez
Copy link
Contributor

This PR hasn't been merged because this PR is somewhat incorrect. The annotation is only needed when the same function is used at least twice and each usage takes an argument of a different type, such that the function must be polymorphic. Those rules aren't actually clarified in this PR.

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.

3 participants