-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Kuba/ssh/doc fixes/otp 19335 #9021
Conversation
CT Test Results 2 files 29 suites 18m 36s ⏱️ Results for commit d23db60. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
b79ff14
to
243b6dd
Compare
My spontaneous question is why do we have a lot types in an .hrl file? I think the types belong in the API module if they are types used in the API. If they are internal types they would probably also belong to some module handling that part of the system rather than and .hrl file. I know this was not your design, I am just questioning if we should keep it when we are improving things. |
Yes. I wondered as well. I guess one can think of pros of this approach:
Do you think it is worth to take them out from hrl file? I have no strong opinion. |
You do not have to export all types for a module. Only the ones used by the API. I think having it in an .hrl file hides errors that could otherwise be caught. Maybe some of the types does not need to be types at all. Old documentation promoted making lots of subtypes. |
but can you internally share type between ssh modules without exporting type out from ssh?
I will have a 2nd look on this. |
The you can put them in a none API module that make sense and export them from there just as we have functions
👍 |
- typo fix in system/doc/reference_manual/typespec.md rename - ConnectionHandler to ConnectionRef to make docs less confusing - add description summary(1st sentence) for ssh_connection:send/4
bd81f45
to
d23db60
Compare
No description provided.