STYLE.md
a_tx and b_rx respectively - where a is the thing the Sender is sending, and b is the thing Receiver is receiving. E.g. agent_message_tx, http_response_rx.
Document above the declaration of the variable/struct member what’s being sent from where to where. Suggested format:
<src> --<what's being sent>—> <dst>.
Example:
/// HTTP client task —-IDs of closed connections—-> TcpStealHandler
If known, the meaning of the objects being sent is documented, not just their type.
unwrap or expect, always explain why it’s ok to do so in a comment (except for in tests obviously).Options where it is valid to have a None. Avoid passing around
Options that are expected to always be Some, and hold the inner value
instead as early as possible.
Option that is
expected to be Some is not None at later points along the run.Option is expected to never be None in order to understand the
code.