-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adopt EEP 48 #7198
Comments
@josevalim this sounds like something interesting to work on as it touches multiple areas including some erlang code. I would like to take a stab at it, but I need some guidance. As far as I can tell completing this would involve the following tasks:
Questions
What did I miss? |
@lackac that's a perfect summary. I also think we can do it in separate PRs. For example: first add the new chunk and remove related functionality, only then remove the old ones. Answers:
|
@josevalim that makes sense. So to clarify, first PR adds the new
|
related question, are you aware of an work on providing the |
@lackac in order to break the work apart, we can change Code.get_docs only when we remove ExDc. :) So in general lines:
Yes, it will be the caller responsibility. Maybe we will add helpers in the future but now it is too early to tell. |
@erszcz may have started on it or at least have some thoughts. |
@josevalim, thanks I think this is enough information for now.
…On 2018. Jun 22., Fri at 18:06, José Valim ***@***.***> wrote:
@lackac <https://github.com/lackac> in order to break the work apart, we
can change Code.get_docs only when we remove ExDc. :) So in general lines:
1. Add new chunk
2. Change related functionality to use new chunk
3. Remove old chunk and return nil from Code.get_docs
Would it be the responsibility of the caller to parse out the relevant
information from the chunk (e.g. the specific function documentation)?
Yes, it will be the caller responsibility. Maybe we will add helpers in
the future but now it is too early to tell.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7198 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAFSCUiFTv2qZwo92_2f47cDX-uQp_Nks5t_RX0gaJpZM4Ra2ki>
.
|
Indeed, I have a partial implementation on https://github.com/erszcz/docsh/tree/eep-48. I'd be happy to do some interop testing once we're close enough to completion with both implementations. One thing worth paying special attention to is |
http://erlang.org/eep/eeps/eep-0048.html
The goal is to introduce
Code.fetch_docs/1
that returns the format in the EEP (or{:error, _}
if the chunk is not available). Since the old documentation chunk will no longer exist,Code.get_docs/2
should be changed to always returnnil
- which is a backwards compatible result - and be scheduled for deprecation.We will also use the new chunk metadata to store relevant information, such as "defaults", "deprecated" and "since".
Replaces #3589.
The text was updated successfully, but these errors were encountered: