-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Document polymorphic function types #10663
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
Conversation
9441553
to
1e512c2
Compare
you will need to update the sidebar as well https://github.com/lampepfl/dotty/blob/master/docs/sidebar.yml |
@bishabosha good catch; done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super useful, thanks a lot for taking the time to write this!
Co-authored-by: Guillaume Martres <[email protected]>
@smarter thanks for reviewing! |
One would call the function `bar` above | ||
by passing it a type argument `bar[Int]` _within a method body_. | ||
On the other hand, given a type lambda such as `type F = [A] =>> List[A]`, | ||
one would call `F` _withing a type expression_, as in `type Bar = F[Int]`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one would call `F` _withing a type expression_, as in `type Bar = F[Int]`. | |
one would call `F` _within a type expression_, as in `type Bar = F[Int]`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cf. #10633