-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
Description
In a discuss post, @dbuenzli suggested an alternative to the "Source" links that takes you from documentation to implementation:
The idea is to hyperlink the identifier (eg the x
in val x : int -> int
) instead of adding a new textual link (Source
in val x : int -> int [Source]
).
The advantage is: less things put on screen, nicer browsing once you know the feature.
The disadvantage is less discoverability.
The linked post mentions another suggestion: that clicking on an identifier declaration in the source takes you to its documentation when it exists.
It feels natural to me:
- In the API docs clicking on a name generally leads you to its interface definition.
- If you click on the name of its interface definition it leads you to its implementation definition. [eg
x
inval x : int -> int
]- If you click on the name of its implementation definition it leads you to its interface definition. [eg
x
inlet x i = i
]