-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feedback on documentation #39
Comments
Here some quick comments on the documentation of the Trigger module. The text is clear, with a lot of useful recommendations.
I will probably add a few more comments when I read other modules ! |
Thanks for the feedback!
Interesting. The way I think about that is that it is a list of implications or conditional behaviours or rules. IOW, it is an Oxford comma. An implication is always true if the premise is unsatisfied. Likewise you may consider that a conditional behaviour or rule always applies — it just does nothing in case the condition is false. The premises/conditional behaviours in this case are mutually exclusive. Both (or all) of the implications need to be considered or conditional behaviours need to be applied, which justifies the use of "and". Also consider let behaviour () =
if ocaml == 5 then (...); (* , and *)
if ocaml == 4 then (...) vs let behaviour () =
if ocaml == 5 then (...) else (* or *)
if ocaml == 4 then (...) But, more to the point, neither of us is a native English speaker. Native English speakers: Does the use of "and" seem appropriate?
Yes, I don't think there is much that can be done to make it look better. This is how it looks like in the generated documentation:
It is useful when you just want to have an arbitrary callback executed when a trigger you attach to a computation is signaled. I could add a comment to this effect. However, as can be inferred from the documentation, you really need to know what you are doing.
|
Thanks !
|
Fiber module :
|
There is always room to improve documentation.
At least for me it can be very difficult to see where the documentation I've written, for code I've designed, isn't necessarily clear enough, because I know too much about the code already.
Feedback on anything that is hard to understand and could perhaps be improved is most welcome.
The text was updated successfully, but these errors were encountered: